合 ssh_exchange_identification: read: Connection reset by peer
Tags: 故障处理LinuxOSssh_exchange_identificationkex_exchange_identification
现象
能ping通,但是不能ssh连接,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [root@docker35 ~]# ssh root@192.168.1.36 ssh_exchange_identification: read: Connection reset by peer [root@oadata ~]# ssh root@192.168.1.37 kex_exchange_identification: read: Connection reset by peer [root@docker35 ~]# ping 192.168.1.36 PING 192.168.1.36 (192.168.1.36) 56(84) bytes of data. 64 bytes from 192.168.1.36: icmp_seq=1 ttl=64 time=0.547 ms 64 bytes from 192.168.1.36: icmp_seq=2 ttl=64 time=0.333 ms ^C --- 192.168.1.36 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.333/0.440/0.547/0.107 ms |
解决
查看/etc/hosts.deny
和/etc/hosts.allow
文件。在/etc/hosts.allow
中加入需要访问的客户端IP地址即可。