ssh报错:REMOTE HOST IDENTIFICATION HAS CHANGED

ssh host@30.3.10.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:2333qZuGZCe61gJmDGkw+ozaiqUvjmOaLTYSMwGh028.
Please contact your system administrator.
Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/xxx/.ssh/known_hosts:64
ECDSA host key for 30.3.10.4 has changed and you have requested strict checking.
Host key verification failed.

解决办法:

sudo vi  /Users/xxx/.ssh/known_hosts

光标移动到30.3.10.4这一行,dd删除这一行,然后esc输入wq保存退出,重新ssh既可以登录

猜你喜欢

转载自blog.csdn.net/a19891024/article/details/76815255