https://andrewbaker.ninja/wp-content/themes/twentysixteen/fonts/merriweather-plus-montserrat-plus-inconsolata.css

πŸ‘4views
How to Fix SSH error: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

CloudScale SEO — AI Article Summary
What it isThis article explains how to resolve the SSH warning that appears when a remote server's fingerprint has changed, indicating a potential security issue or server change.
Why it mattersThis error blocks SSH connections and needs immediate attention since it could indicate a security breach or legitimate server update that requires user verification.
Key takeawayThe quickest fix is deleting the known_hosts file, though this removes all stored server fingerprints and requires re-accepting them.

If the fingerprint of your remote host changes you will see the following error message appear:

 ~ % ssh -i "mykey.pem" [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:S60CvpE17ri+E594StxXBQcNIrga4Nb7uX4s7BPr3dw.
Please contact your system administrator.
Add correct host key in /Users/user_id/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/user_id/.ssh/known_hosts:2
Host key for my_host.af-south-1.compute.amazonaws.com has changed and you have requested strict checking.
Host key verification failed.

There are many ways to fix this. The easiest of which is simply to delete your “known_hosts” file. This will mean you just need to accept new finger prints on all your SSH hosts. Yes, this is very lazy…

rm ~/.ssh/known_hosts

Leave a Reply

Your email address will not be published. Required fields are marked *