问题情景
为了实现免密操作,主机A和主机B之间相互添加过安全秘钥。主机A更换硬盘后,仍然使用以前的IP,从主机B ssh登录到主机A失败,报错如下:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is 0c:f6:6e:35XXXXX
Please contact your system administrator.Add correct host key in /home/maxnet/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/maxnet/.ssh/known_hosts:82
remove with: ssh-keygen -f "/home/xin/.ssh/known_hosts" -R 192.168.3.66
ECDSA host key for 192.168.3.66 has changed and you have requested strict checking.
Host key verification failed.
lost connection
这里主机A地址是xin@192.168.3.66。

最低0.47元/天 解锁文章
5704

被折叠的 条评论
为什么被折叠?



