阿里云重新初始化磁盘后,如何ssh登录

阿里云重新初始化磁盘后,再次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:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Please contact your system administrator.

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

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

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

Host key verification failed.


解决方法是:ssh-keygen -R xx.xx.xx.xx(这些xx是阿里云IP地址)

你可能感兴趣的:(阿里云重新初始化磁盘后,如何ssh登录)