现在的位置: 首页 > 综合 > 正文

SSH免密码登录连接失败:Host key verification failed

2018年06月05日 ⁄ 综合 ⁄ 共 761字 ⁄ 字号 评论关闭

最近更换了一部分服务器,一部分没有更换,在原来的机器上ssh登录其他机器的时候被拒了。

执行: SSH xxx.xxx.xxx.xxx

结果:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
a1:ee:9e:76:32:ab:79:83:21:c1:d1:eb:35:44:fe:b4.
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:13
RSA host key for 10.0.0.10 has changed and you have requested strict checking.
Host key verification failed.

解决方案:

直接删除/root/.ssh/known_hosts这个文件

抱歉!评论已关闭.