标签: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