文章目录

  • ​​0 错误重现​​
  • ​​1 解决方法​​

0 错误重现

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:JgnlOMk5mjJ+t+mmf/ZiAont/IS9Q7IMjGxxbYP49Q0.
Please contact your system administrator.
Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /var/root/.ssh/known_hosts:1
ECDSA host key for 45.77.36.27 has changed and you have requested strict checking.

1 解决方法

ssh-keygen -R "你的远程服务器ip地址"

作用:使用上述命令便可以清除known_hosts里旧缓存文件。