Chinaunix首页 | 论坛 | 博客
  • 博客访问: 134519
  • 博文数量: 73
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 760
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-29 14:07
文章分类
文章存档

2011年(2)

2010年(4)

2009年(40)

2008年(27)

我的朋友

分类: LINUX

2009-03-09 10:39:09

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
2009年01月09日 星期五 01:36
今天早上同步另一台服务器上的数据时,因为那台服务器刚重装过了,再执行

rsync -auvb -e ssh root@192.168.4.222:/home home

报错,错误信息如下:
[root@newbiizchina backup_222]# rsync -auvb -e ssh home
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
d0:00:7c:bc:88:5c:dc:de:89:61:44:30:00:60:f9:b2.
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.4.222 has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]

搜索得到如下解决:

因为在本地机器上曾经用SSH登录过这台远程计算机,因而留下了known_hosts的记录,在远程计算机重新安装系统后不能够通过鉴权.

vi ~/.ssh/known_hosts


进入此目录,删除192.168.4.222的相关rsa的信息即可.

阅读(581) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~