xshell 连不上ubuntu linux

来源:互联网 发布:淘宝搭配套餐怎么设置 编辑:程序博客网 时间:2024/04/29 17:38

转自http://eminzhang.blog.51cto.com/5292425/1323655

出现这种情况的原因:

1.服务器端防火墙关闭了22端口,没有开启ssh服务;

2.没有安装ssh;

解决原因1:使用netstat,查看是否启动shh服务;

开启ssh服务:service sshd start

关闭ssh服务:service sshd stop

重启ssh服务:servcie sshd restart

SSH服务开机自动启动:chkconfig sshd on

取消开机自启动:chkconfig sshd off

开启服务后,检查服务状态:service sshd status

解决原因2:安装ssh:

apt-get install openssh-server

0 0
原创粉丝点击