当前位置: 代码迷 >> 综合 >> 当ssh虚拟机出现报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!怎么办
  详细解决方案

当ssh虚拟机出现报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!怎么办

热度:48   发布时间:2023-12-14 12:55:35.0

当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

删除文件内所有内容

  相关解决方案