ssh连接的时候出现Host key verification failed.

post by rocdk890 / 2011-11-21 15:19 Monday linux技术

 今天在服务器上执行远程操作命令出现以下的问题:
[root@www ~]# ssh 205.209.161.**
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
6c:74:2a:d5:ae:2b:76:51:*:*.
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:20
RSA host key for 205.209.161.** has changed and you have requested strict checking.
Host key verification failed.

如图:
点击查看原图

解决方法:
在正在操作的机器上执行
vi ~/.ssh/known_hosts
 
进入此目录,删除的205.209.161.**相关rsa的信息即可.
或者删除这个文件
cd ~/.ssh/
rm known_hosts
夜空- 本站版权
1、本站所有主题由该文章作者发表,该文章作者与夜空享有文章相关版权
2、其他单位或个人使用、转载或引用本文时必须同时征得该文章作者和夜空的同意
3、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
4、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
5、原文链接:blog.slogra.com/post-70.html

标签: ssh 解决 错误 连接 key

  1. gravatar rocdk890
    2011-11-23 16:47
    @Ansen:已经添加了
  1. gravatar Ansen
    2011-11-23 15:45
    求友情
    title:Ansen's Blog
    url:http://www.ansen.org
    我先加你了
  1. gravatar Ansen
    2011-11-23 15:43
    嗯,学习了

评论: