ssh连不上linux主机,提示“The host xxxx is unreachable”解决方法

按以下步骤进行排查:

1. 用“service iptables stop”关闭防火墙。
2. 用“service sshd status”查看ssh服务是否已启动。
3. /etc/ssh/sshd_config里看看有没有明确禁止一个账户,或明确允许你要远程的账户。

DenyUsers root
AllowUsers puser

4. netstat -tupln|grep sshd 看看你的sshd端口是多少。

猜你喜欢

转载自blog.csdn.net/blueblood1/article/details/82931337