码迷,mamicode.com
首页 > 其他好文 > 详细

解决ssh_exchange_identification:read connection reset by peer 原因

时间:2019-01-14 11:50:38      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:home   groovy   options   pen   cti   star   Opens   tar   str   

服务器改了密码,试过密码多次后出现:

ssh_exchange_identification: read: Connection reset by peer

可以通过ssh -v查看连接时详情

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
........

最后找打解决方法:

vi /etc/hosts.allow

追加:

sshd: ALL

重启ssh就ok了

service sshd restart

解决ssh_exchange_identification:read connection reset by peer 原因

标签:home   groovy   options   pen   cti   star   Opens   tar   str   

原文地址:https://www.cnblogs.com/web-chuanfa/p/10265798.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!