ssh連接的時(shí)候,報(bào)錯(cuò):
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
原因:
系統(tǒng)有改變,導(dǎo)致加密的密鑰改變,因此本地保存的密鑰失效;需要重新保存密鑰在 ~/.ssh/known_hosts 中。
解決方法:刪除 ~/.ssh/known_hosts 文件中指定ip的密鑰即可。