解決ssh_exchange_identification:read connection reset by peer 緣由

服務器改了密碼,試過密碼屢次後出現:服務器

ssh_exchange_identification: read: Connection reset by peer

能夠經過ssh -v查看鏈接時詳情ssh

OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: Connecting to xxx [xx] port 22.
debug1: Connection established.
debug1: identity file /home/yanue/.ssh/id_rsa type -1
debug1: identity file /home/yanue/.ssh/id_rsa-cert type -1
debug1: identity file /home/yanue/.ssh/id_dsa type -1
debug1: identity file /home/yanue/.ssh/id_dsa-cert type -1
debug1: identity file /home/yanue/.ssh/id_ecdsa type -1
debug1: identity file /home/yanue/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/yanue/.ssh/id_ed25519 type -1
debug1: identity file /home/yanue/.ssh/id_ed25519-cert type -1
........

最後找打解決方法:ide

vi /etc/hosts.allow

追加:debug

sshd: ALL

重啓ssh就ok了rest

service sshd restart
相關文章
相關標籤/搜索