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.

Solution:

sudo vi  /Users/xxx/.ssh/known_hosts

Move the cursor to the line 30.3.10.4, delete this line with dd, then esc enter wq to save and exit, and ssh can log in again

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326563610&siteId=291194637