ssh连接的时候出现Host key verification failed.
2013年5月1日
没有评论
今天在服务器上执行远程操作命令出现以下的问题:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [root@www ~]# ssh 192.168.1.** @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 3c:2a:3a:d5:ae:2b:76:52:*:*. 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:20 RSA host key for 192.168.1.** has changed and you have requested strict checking. Host key verification failed. |
解决方法:
在正在操作的机器上执行
1 | vi ~/.ssh/known_hosts |
进入此目录,删除的192.168.1.**相关rsa的信息即可.
或者删除这个文件
1 2 | cd ~/.ssh/ rm known_hosts |