Host key verification failed

  • 2020-08-07
  • 浏览 (1268)

linux 服务器重装后,链接服务器异常

异常信息

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:5nARzlRa/oW6tDPfo0lB2q7lzj89zf8IP1imBS6JEww.
Please contact your system administrator.
Add correct host key in /c/Users/kyle/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/kyle/.ssh/known_hosts:1
ECDSA host key for 121.1xx.xx.xx has changed and you have requested strict checking.
Host key verification failed.

解决方案

ssh-keygen -R IP地址

0  赞