ssh登录出错:RSA host key for XXX has changed...

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh登录出错:RSA host key for XXX has changed...相关的知识,希望对你有一定的参考价值。

$ ssh [email protected]

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

cd:d1:ad:98:ca:36:b5:ec:c3:1d:be:b8:8c:ae:bc:80.

Please contact your system administrator.

Add correct host key in /testusr/.ssh/known_hosts to get rid of this message.

Offending key in /testusr/.ssh/known_hosts:144

RSA host key for XXX has changed and you have requested strict checking.

Host key verification failed.


执行下面命令可以解决

$ ssh-keygen -R XXX

/chkusr/.ssh/known_hosts updated.

Original contents retained as /testusr/.ssh/known_hosts.old


说明:

XXX表示你要登录的服务器IP

以上是关于ssh登录出错:RSA host key for XXX has changed...的主要内容,如果未能解决你的问题,请参考以下文章

SSH登录时“no matching host key type found. Their offer: ssh-rsa,ssh-dss“的错误解决方法

ssh报错:Could not load host key:/etc/ssh/ssh_host_rsa_key&ssh_host_ecdsa_key&ssh_host_ed25519_key(示例代码

no matching host key type found. Their offer: ssh-rsa 问题解决

Unable to negotiate with xxxxport 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

could not load host key: /etc/ssh/ssh_host_rsa_key 无法启动ssh的一个解决办法

ssh登录错误ECDSA host key for 10.10.10.10 has changed