linux系統重灌導致免密碼key登入失敗

atlantisholic發表於2011-12-31

在一臺linux機器上ssh遠端另外一臺linux伺服器時候出現:

[root@server .ssh]# ssh 192.0.50.80
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
97:d3:d4:f1:c9:c6:2e:40:93:b2:a8:70:45:e8:d2:6c.
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:1
RSA host key for 192.0.50.80 has changed and you have requested strict checking.
Host key verification failed.
[root@server .ssh]#

這種情況是因為要ssh的機器上的ssh重新安裝或者系統重灌了,導致RSA host key 失效,解決方法:mv /root/.ssh/known_hosts /tmp即可重新登入

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23071790/viewspace-714315/,如需轉載,請註明出處,否則將追究法律責任。

相關文章