Xshell连接不上linux

作者:Garany 发布于:2014-11-25 分类:破万卷书

Xshell连接不上linux 
 
一上午的问题:记下来!
 
Xshell连接不上linux


提示:

Connecting to 172.17.11.147:22...

Could not connect to '172.17.11.147' (port 22): Connection failed.

 


Type `help' to learn how to use Xshell prompt.

Xshell:\>

 


出现这种情况的原因:

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:

yum install openssh-server

 

服务器端防火墙封闭了22端口,

评论列表

李阳博客
2014-11-27 11:58
妈蛋的。。都不给我留言。
Garany
2014-12-01 13:52
@李阳博客:友链加上啊!

我来说说