Programming Keys is blog for all Programming and technology related articles

Monday, March 27, 2023

Warning: Remote Host Identification Has Changed" IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY

This took place as a result of the fact that on March 24, 2023, GitHub updated the RSA SSH host key that is used to secure Git operations for GitHub.com because the private key was briefly exposed in a public GitHub repository. This was the reason why this occurred. If you remembered GitHub's previous key fingerprint in your SSH client prior to that date, you will receive that message. The solution, according to the linked blog post, is to run this command to get rid of the old key:
$ ssh-keygen -R github.com
Now, the next git connection (pull, push, or clone) should ask you if you trust the new SSH key. $ ssh-keygen -R github.com Utilizing the list, verify that the displayed new key is valid prior to entering yes: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints
Share: