首页 > 技术文章 > ssh连接失败,报ssh_exchange_identification: read: Connection reset by peer

dengxuyang 2020-09-09 10:54 原文

ssh_exchange_identification: read: Connection reset by peer

网上查了很多资料,解决办法就是

先查看more /etc/hosts.deny  没有IP限制,按下面的步骤操作,尝试之后发现还是无法连接。

vi /etc/hosts.allow
sshd: ALL #追加
service sshd restart 或 systemctl restart sshd

把虚拟机关闭,ping该虚机的IP地址,发现竟然是通的,原因找到了是IP地址冲突引起的。

更换IP地址后,SSH连接成功。

参考链接:https://www.cnblogs.com/taoquns/p/9590960.html 

https://www.cnblogs.com/756623607-zhang/p/11877444.html

https://blog.csdn.net/lilygg/article/details/86187028

推荐阅读