今天配置两台机器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
阅读(2040) | 评论(0) | 转发(0) |