ssh: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:XYZ4ssS4/F4uTmmY4/vaSvutIVHrUFEEErLWl9HPlFI.
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:3
ECDSA host key for 192.168.1.103 has changed and you have requested strict checking.
Host key verification failed.

出现这个问题的原因是,第一次使用SSH连接某个ip时,会生成一个认证,储存在客户端的/var/root/.ssh/known_hosts中。由于服务器重新安装系统了,所以会出现以上错误。所以只需要将known_hosts中相应的认证删除即可。

你可能感兴趣的:(ssh: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)