mac機器
bogon:~ mac$ ssh -p **22 root@**.*********.org
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:P73YH4G4Eedj7XrvYAmAst3/qtUS5E1WL8Dm8vUzDD8.
Please contact your system administrator.
Add correct host key in /Users/mac/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/mac/.ssh/known_hosts:34
RSA host key for [**.*********.org]:**22 has changed and you have requested strict checking.
Host key verification failed.
根據提示的意思我們就可以知道在本地的known_hosts儲存的主機hostkey記錄改變了,該記錄的主鍵可以是所連主機的域名,也可以是所連主機的IP位址。
我們可以進入到該文檔删除對應行,也可以直接用以下的指令直接把known_host
本文轉自phpervip 51CTO部落格,原文連結:http://blog.51cto.com/phpervip/1972523,如需轉載請自行聯系原作者