当ssh虚拟机出现如下报错怎么办
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
ec:85:83:bb:6e:a2:c0:bc:5a:08:2c:96:31:f4:85:b6.
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:4
ECDSA host key for 172.25.254.116 has changed and you have requested strict checking.
Host key verification failed.
#####################
因为误操作更新了ssh密钥,所以获取上述消息。
解决方式为打开以下文件
vim /root/.ssh/known_hosts
删除文件内所有内容