码迷,mamicode.com
首页 > 其他好文 > 详细

ssh登录出错:RSA host key for XXX has changed...

时间:2018-06-27 10:17:54      阅读:419      评论:0      收藏:0      [点我收藏+]

标签:one   opp   correct   some   服务器   content   mini   upd   nal   

$ 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

ssh登录出错:RSA host key for XXX has changed...

标签:one   opp   correct   some   服务器   content   mini   upd   nal   

原文地址:http://blog.51cto.com/xiaoxiaozhou/2133024

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!