ssh连接的时候出现Host key verification failed.

Posted on 2014-02-28 16:57  php小弟  阅读(399)  评论(0)    收藏  举报

今天在服务器上执行远程操作命令出现以下的问题:
[root@www ~]# ssh 10.10.**
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
6c:74:2a:d5:ae:2b:76:51:*:*.
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 10.10.** has changed and you have requested strict checking.
Host key verification failed.

如图:

解决方法:
在正在操作的机器上执行:vi ~/.ssh/known_hosts  
 
进入此目录,删除的10.10.**相关rsa的信息即可.

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3