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

情到浓时终转凉″ 提交于 2019-12-06 10:08:59

使用本地终端连接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.182.26.163

  

 

进到服务器:

$vi /etc/hosts.allow

添加:

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

 

 $service sshd restart

 

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

$ssh root@10.xxx.xxx.xxx

成功,如下:

 

 

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

爱生活,爱工作。

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!