登錄ssh的時候,出現錯誤

登錄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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xxxxxxxxxxxxxxxxxxx.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
RSA host key for xx.xx.xx.xx has changed and you have requested strict checking.
Host key verification failed.

上網查了一下,刪掉或者移動/root/.ssh/known_hosts文件就可以了
#rm /root/.ssh/known_hosts

或者

#mv /root/.ssh/known_hosts /tmp
 

“Offending key in /root/.ssh/known_hosts:5”
據說刪除文件中第五行也行,我沒試過
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章