ssh的RSA key改变而不能登录的解决
以前也碰到过这种情况,比如说服务器重装后,再次登录服务器被拒绝:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
5d:ba:**.**.**......
Please contact your system administrator.
Add correct host key in /home/**/.ssh/known_hosts to get rid of this message.
Offending key in /home/**/.ssh/known_hosts:4
RSA host key for 2**.**.***.*** has changed and you have requested strict checking.
Host key verification failed.
lost connection
直接进/home/**/.ssh/,把里面的东西删干净就可以了,当然也可以只删除对应的key。
Labels: Linux, Operation and Maintenance
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home