Sitemap
DevOps with Valentine

DevOps can help you deliver more business value. It is not always easy but certainly possible.

GitHub Error: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! — How to Fix

2 min readMar 24, 2023

--

If you are pushing something to GitHub using Git, you will most likely get the following error message:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Or if you are a Visual Studio Code user, the error might look like this:

Normally, this is a very serious error, and you should pay attention to it. Here is it in full:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.

This time, GitHub (the remote host), did indeed change it’s RSA SSH host key. [1].

How to fix this?

This can be easily fixed from the terminal. First, remove the old RSA SSH key associated with…

--

--

DevOps with Valentine
DevOps with Valentine

Published in DevOps with Valentine

DevOps can help you deliver more business value. It is not always easy but certainly possible.

Valentin Despa
Valentin Despa

Written by Valentin Despa

Software developer, educator & overlander • GitLab Hero • AWS Community Builder • Postman Supernova • Imprint: http://vdespa.com/imprint

No responses yet