Chinaunix首页 | 论坛 | 博客
  • 博客访问: 232341
  • 博文数量: 71
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 817
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-30 08:47
文章分类

全部博文(71)

文章存档

2021年(1)

2020年(2)

2019年(1)

2015年(1)

2014年(26)

2013年(40)

我的朋友

分类: LINUX

2013-08-06 14:32:49

今天配置两台机器ssh通信认证,ssh ip date 出现问题如下问题:
[oneadmin@compute-56-12 ~]$ ssh 192.168.39.73 date
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
88:a5:9e:11:6b:cd:88:f3:6d:50:b6:b8:35:14:7d:8a.
Please contact your system administrator.
Add correct host key in /home/oneadmin/.ssh/known_hosts to get rid of this message.
Offending key in /home/oneadmin/.ssh/known_hosts:35
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Tue Aug  6 14:05:53 CST 2013

原因是密钥验证错误。
解决办法:
编辑该用户下家目录下的.ssh/known_hosts 删除包含该ip的一行的密钥,
$ vim .ssh/known_hosts
找到包含该ip的一行,在一般模式下,直接dd,然后在命令模式下:wq保存退出。
在此验证好了:
[oneadmin@compute-56-12 ~]$ ssh 192.168.39.73 date
Warning: Permanently added '192.168.39.73' (RSA) to the list of known hosts.
Tue Aug  6 14:08:51 CST 2013



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