When you log on to a Linux machine, you can not log in, there is connection reset by peer error, please refer to the following resolution steps:
1, Ssh-vvv-p22 123.10.98.22
Such as:
localhost:~$ Ssh-vvv-p22 123.10.98.22
OPENSSH_6.2P2, Osslshim 0.9.8r 8 DEC 2011
Debug1:reading Configuration Data/etc/ssh_config
DEBUG1:/etc/ssh_config line 20:applying options for *
Debug2:ssh_connect:needpriv 0
Debug1:connecting to 123.10.98.22 [123.10.98.22] Port 22.
Debug1:connection established.
debug1:identity file/.ssh/id_rsa type-1
debug1:identity file/.ssh/id_rsa-cert type-1
debug1:identity file/.ssh/id_dsa type-1
debug1:identity file/.ssh/id_dsa-cert type-1
debug1:enabling compatibility Mode for Protocol 2.0
Debug1:local Version string ssh-2.0-openssh_6.2
Ssh_exchange_identification:read:Connection Reset by peer
2. Check if access control is configured
Cat/etc/hosts.allow
Sshd:192.168.1.*:allow
Sshd:all:deny
Found here is not allowed 123.10.98.22来 login, so you need to add a rule:
Sshd:192.168.1.*:allow
SSHD: The company's Export ip:allow # #这里的IP通过ip138. com can be queried.
Sshd:all:deny
This article comes from "anything you insist on!" "Blog, be sure to keep this provenance http://zhaowenlong51.blog.51cto.com/3231475/1687633
Ssh_exchange_identification:read:Connection reset by peer Error resolution