码迷,mamicode.com
首页 > 其他好文 > 详细

ssh_Connection reset by peer报错

时间:2017-11-10 18:53:21      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:compute   dsa   auth   rom   修复   computer   /etc/   nbsp   set   

连接SSH时,产生了一下错误----->Read from socket failed: Connection reset by peer

首先查看日志 

tail -f /var/log/auth.log 

添加参数 -v 获得更详细的连接信息 

ssh user@computer -v 

如果是 rsa and dsa keys 丢失产生的问题, 可以通过下面的方式进行修复: 


①ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_rsa_key 


②ssh-keygen -t dsa  -f /etc/ssh/ssh_host_dsa_key

 

ssh_Connection reset by peer报错

标签:compute   dsa   auth   rom   修复   computer   /etc/   nbsp   set   

原文地址:http://www.cnblogs.com/cq146637/p/7815613.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!