ssh_exchange_identification: read: Connection reset by peer解决办法


使用本地终端连接centos服务器,提示ssh_exchange_identification: read: Connection reset by peer

$ssh root@10.xxx.xxx.xxx

  ssh_exchange_identification: read: Connection reset by peer

$ssh -v root@10.xxx.xxx.xxx

  

 

 

 

 

进到服务器:

$vi /etc/hosts.allow

添加:

sshd: ALL ##允许所有ip主机均能连接本机

 

 $service sshd restart

 

 现在在客户端连接服务器:

$ssh root@10.xxx.xxx.xxx

成功,如下:

 

 

------------------------------------------------------Tanwheey--------------------------------------------------

爱生活,爱工作。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM