http://blog.chinaunix.net/uid-26212859-id-3053252.html
我这里有两台设备A、B,B设备刚刚更新了sshd,在A设备上使用ssh命令登录B设备时出现如下告警:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 host key has just been changed.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Host key for host.domain has changed and you have requested strict checking.
解决办法:
1. cd ~/.ssh/
2. vi known_hosts
3. 找到和远程主机ip一致的密钥保存信息,直接dd删除,然后:x保存退出
4. 重新连接,输入密码,发现连接成功
5.文件里信息很多不好找的话,可以直接把known_hosts备份为known_hosts.old
PS:重新安装过ssh后,使用scp命令也会有这个告警,解决办法也一样