WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 解决方法

云服务器重装系统后,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

SHA256:xxxxxxxxxxxx

Please contact your system administrator.

Add correct host key in /Users/kylin/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /Users/kylin/.ssh/known_hosts:1

ECDSA host key for XXXXXXXXXXX has changed and you have requested strict checking.

Host key verification failed.

解决方法:

使用命令清除所连接的IP,执行以下命令即可!!!

ssh-keygen -R XX.XX.XX.XX 

你可能感兴趣的:(Linux)