ssh连接失败,提示 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

[root@iZ2ze4kh1rvftq4cevdfjwZ ~]# ssh IP
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:HD+WKR/uzGDGgQxj8npMKtsy/dxvz4Pzn7zP/PwxfMc.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:
ECDSA host key for 106.12.114.69 has changed and you have requested strict checking.
Host key verification failed.

ssh连接失败,提示 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

我之前用这个机器连接过对方机器  但是对方机器重新做了系统

原因:提示中间人攻击,之前连接过该主机未成功,但是写到了known_hosts中。 
解决办法:

vi ~/.ssh/known_hosts

删掉根据你连接的主机ip)的记录(一行),重新连接即可

上一篇:Linux或树莓派3——挂载U盘、移动硬盘并设置rwx权限


下一篇:实现password框中显示文字提示的方式