Fix Github's Error Message "Remote Host Identification Has Changed"
I tried to do git pull and git push on a repo this morning and found this intimidating warning message, on multiple devices.
It turned out that on March 24, 2023, Github updated its RSA SSH host keys as the previous private keys were briefly exposed in a public Github repository. Based on the instructions from this Stack Overflow post Stack Overflow post , this warning message can be removed by running:
ssh-keygen -R github.com
On your next git operation, you'll be prompted with a question whether you trust the new SSH key.
Verify that against the 4 new SSH key fingerprints published by Github, namely:
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s (RSA)
SHA256:br9IjFspm1vxR3iA35FWE+4VTyz1hYVLIE2t1/CeyWQ (DSA - deprecated)
SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM (ECDSA)
SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU (Ed25519)
That's it. Git operation is now back to normal.
Like it? A donation or tip would go a long way.
![](/img/btc.png)
BTC
14DYUJw7SYszhDtn3UHhRwV9WpmGWeFAve
![](/img/eth.png)
ETH
0xCfB04B53C05488Ac0aC4F47C9550e8Ca1eaA476e
![](/img/icp.png)
ICP
d80bd36baca1a0166e812c0f669ffaa222a7c6b6f2a8e3f5c690bafe251aaf4b