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 


eg.

ssh-keygen -R 172.168.3.44


WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 的解决_第1张图片

你可能感兴趣的:(linux)