0
点赞
收藏
分享

微信扫一扫

SSH连接出错问题收集


问题1:
SSH登陆错误 (WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)

[root@myUbuntu ~]# ssh root@192.168.100.106
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b6:0c:41:43:60:79:eb:05:9e:c9:72:1d:a0:41:9a:50.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
RSA host key for 192.168.10.88

解决方法:
  在客户端执行下述指令即可

.ssh/known_hosts /tmp

  当然也可以直接编辑known_hosts文件,把里面与所要连接IP(192.168.100.106)相关的内容删掉即可。

问题2:
ssh Read from socket failed: Connection reset by peer

解决方法:
执行以下命令

ssh-keygen -t dsa  -f  /etc/ssh/ssh_host_dsa_key 
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
/etc/init.d/ssh restart


举报

相关推荐

0 条评论