ssh登錄出錯:RSA host key for XXX has changed...

$ ssh root@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

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章