SSH报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

SSH报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

ssh连接的时候,报错:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a9:8f:de:4b:37:89:75:81:f2:7b:d6:3a:af:66:70:87.
Please contact your system administrator.

原因:
系统有改变,导致加密的密钥改变,因此本地保存的密钥失效;

需要重新保存密钥在 ~/.ssh/known_hosts 中。

解决方法:

删除 ~/.ssh/known_hosts 文件中指定ip的密钥即可。

你可能感兴趣的:(SSH报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED)