合 可以ping通,但ssh报错:ssh: connect to host 100.8.6.26 port 22: Connection refused
Tags: 故障处理LinuxOSsshConnection refused
现象
可以ping通,但是不能ssh通,scp和telnet都不通:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | [root@hdw1 ~]# ping 100.8.6.26 PING 100.8.6.26 (100.8.6.26) 56(84) bytes of data. 64 bytes from 100.8.6.26: icmp_seq=1 ttl=63 time=0.347 ms ^C --- 100.8.6.26 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.347/0.347/0.347/0.000 ms [root@hdw1 ~]# [root@hdw1 ~]# ssh root@100.8.6.26 -p22 ssh: connect to host 100.8.6.26 port 22: Connection refused [root@hdw1 ~]# telnet 100.8.6.26 22 Trying 100.8.6.26... telnet: connect to address 100.8.6.26: Connection refused [root@hdw1 ~]# [root@hdw1 ~]# touch a.txt [root@hdw1 ~]# scp a.txt root@100.8.6.26:/soft/ ssh: connect to host 100.8.6.26 port 22: Connection refused lost connection [root@hdw1 ~]# [root@hdw1 ~]# ssh root@100.8.6.26 -p2222 root@100.8.6.26’s password: |