正常安装了SSH Secure之后,进行快速连接,填入必要的信息如host name 与user name,报错:
The host 'XCXXXXXXX' is unreachable.
the host may be down,or there may be a problem with the network connection.
Sometimes such problems can also be caused by a misconfigured firewall
如下图
根据提示定位问题:首先查看主机和虚拟机中的linx是否能ping通,发现是可以相互ping通;
然后查看linux'中的ssh服务是否开启:service sshd status ,发现显示的是stopoing的状态,于是开启,执行命令:service sshd start;然后执行命令netstat -tnl 查看是否开启成功,如果开启成功,22端口会显示在listening的状态;
然后再检查防火墙是否开启,service iptables status ,发现防火墙开启了,于是执行命令:service iptables stop 进行关闭;
关闭之后再次输入相应的host name和user name进行连接。即可正常连接;
注:如果要求输入密码,忘记;linux中的密码,可以执行passwd进行重置密码。