标签:style blog ar color os sp for on div
虚拟机上装了一个 Linux 玩玩, 但在启动 Linux 后,在 Windows 中通过 Xshell 以 SSH 方式连接到 Linux 时却连接不上,于是打开 CMD 窗口,输入了 ping 192.168.220.128,返回结果显示可以拼通:
Pinging 192.168.220.128 with 32 bytes of data: Reply from 192.168.220.128: bytes=32 time<1ms TTL=64 Reply from 192.168.220.128: bytes=32 time<1ms TTL=64 Reply from 192.168.220.128: bytes=32 time<1ms TTL=64 Reply from 192.168.220.128: bytes=32 time<1ms TTL=64 Ping statistics for 192.168.220.128: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
没弄明白是怎么一回事,就 GOOGLE 了一翻, 通过 Google 找到了问题所在:需要在客户端通过 SSH 连接主机,如果连接过程中返回的错误信息是 “请求被拒绝“,那么应该是 LINUX 开启了防火墙,或是 SSHD 服务没有启动!
通过执行下面两个命令解决:
service iptables stop //关闭防火墙
service sshd start //启动 SSHD 服务
标签:style blog ar color os sp for on div
原文地址:http://www.cnblogs.com/visec479/p/4109351.html