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

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

 

 

 

 

进到服务器:

$vi /etc/hosts.allow

添加:

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

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

 

 $service sshd restart

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

 

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

$ssh root@10.xxx.xxx.xxx

成功,如下:

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

 

 

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

爱生活,爱工作。

 

相关文章:

  • 2021-05-01
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-11-19
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案