解决ssh_exchange_identification:read connection reset by peer 原因

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

 
  1. ssh_exchange_identification: read: Connection reset by peer

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

 

 
  1. ssh -v root@ip地址或域名

会出现以下信息:

 

 

 
  1. OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015
  2. debug1: Reading configuration data /etc/ssh/ssh_config
  3. debug1: /etc/ssh/ssh_config line 56: Applying options for *
  4. debug1: Connecting to xxx [xx] port 22.
  5. debug1: Connection established.
  6. debug1: identity file /home/yanue/.ssh/id_rsa type -1
  7. debug1: identity file /home/yanue/.ssh/id_rsa-cert type -1
  8. debug1: identity file /home/yanue/.ssh/id_dsa type -1
  9. debug1: identity file /home/yanue/.ssh/id_dsa-cert type -1
  10. debug1: identity file /home/yanue/.ssh/id_ecdsa type -1
  11. debug1: identity file /home/yanue/.ssh/id_ecdsa-cert type -1
  12. debug1: identity file /home/yanue/.ssh/id_ed25519 type -1
  13. debug1: identity file /home/yanue/.ssh/id_ed25519-cert type -1
  14. ........

百度谷歌一大把,没用,最后找打解决方法:

 

 
  1. vi /etc/hosts.allow

全部注射,追加:

 
  1. sshd: ALL

重启ssh就ok了

 

 

 
  1. service sshd restart

注:以上操作是进入阿里云CES连接管理终端后进行的

 

我猜是密码错误过多,被服务器拉黑的感觉。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值