Host key verification failed.

我服务器更换了镜像之后,连接不上服务器了,错误如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:96bXsbMM92nKEZgcFYcpHrO054jZa9LlnpZ4QtZ0mF4.
Please contact your system administrator.
Add correct host key in /Users/yuehailin/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/yuehailin/.ssh/known_hosts:3
ECDSA host key for 106.53.84.17 has changed and you have requested strict checking.
Host key verification failed.

我的解决办法:

vi  ~/.ssh/known_hosts

将对应IP的那一行删掉重新连接即可。

你可能感兴趣的:(学习小结)