Xshell连不上

一、简单介绍下问题的场景:

   昨天还能用ssh连上10.10.37.151 port 22 这个地址,今天突然连不上了。

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

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

如果你的环境不是这样的情况,请百度寻找具体的配置环境

二、检查下ssh的使用情况

    service sshd  status

  发现 22 端口被占用,所以前面10.10.37.151 port 22连接不上。

  回顾下 cisco anyconnect secure mobility client 是占用22 端口

  关掉cisco 后可以正常连接

    

三、linux总 sshd命令

看sshd服务状态 

service sshd status

启动sshd服务 

service sshd start

停止sshd服务

service sshd stop

猜你喜欢

转载自blog.csdn.net/weixin_38328785/article/details/112510766