问题描述:可以ping通,但是ssh连不上,telnet也不可以,提示"No route to host."
# ping 211.153.xx.xx
PING 211.153.xx.xx (211.153.xx.xx) 56(84) bytes of data.64 bytes from 211.153.66.27: icmp_seq=1 ttl=48 time=143 ms
^C
--- 211.153.xx.xx ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 825ms
rtt min/avg/max/mdev = 143.249/143.249/143.249/0.000 ms
[root@web02 ~]# ssh -p 21345 -l root !$
ssh -p 21345 -l root 211.153.xx.xxssh: connect to host 211.153.xx.xx port 21345: No route to host
[root@web02 ~]# telnet 211.153.xx.xx 21345
Trying 211.153.66.27...
telnet: connect to address 211.153.xx.xx: No route to host
这个问题,是因为没有关闭selinux或者是iptables有相应的规则。