Linux remote connection ssh prompts IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY to solve

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

 

In the error message, it is very clear:

Offending ECDSA key in ~/.ssh/known_hosts:24

Delete the wrong host SHA record in the known_hosts file and reconnect it is ok.

The reason for this situation may be that the remote machine has changed, resulting in a change in the SHA of the machine code, and the verification fails~

Delete the line corresponding to the ip of known_hosts, and that's it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325122467&siteId=291194637