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

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

时间:2014-09-03 14:46:26      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:des   http   os   io   ar   for   文件   art   问题   

今天用scp命令复制时,提示如下错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
25:ab:2e:55:30:11:a0:84:d8:45:2f:5b:e2:47:eb:1e.
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.168.1.240 has changed and you have requested strict checking.
Host key verification failed.
lost connection

开始我以为是命令错误,仔细一看,原来是密钥验证错误,可能是我的账号信息做过更改。
 

找到该用户家目录下的如下的ssh连接文件夹:
1. cd ~/.ssh/
2. vi known_hosts
3. 找到和远程主机ip一致的密钥保存信息,直接dd删除那一行信息,然后保存退出
4. 重新连接,输入密码,发现连接成功

问题解决

本文出自 “原下” 博客

详细请参考:http://www.codesky.net/article/201107/133930.html

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

标签:des   http   os   io   ar   for   文件   art   问题   

原文地址:http://www.cnblogs.com/yabingshi/p/3953455.html

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