Resolve “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED. Host key verification failed”

Md Asiful Haque
2 min readApr 8, 2021

We might all have faced the error ofWARNING: REMOTE HOST IDENTIFICATION HAS CHANGED. Host key verification failedin our life while using SSH login.

What went wrong?

Did you ever wonder what went wrong with your perfect system? Well, the good news is nothing went wrong with your system. As the message suggests itself there were some SSH key for the IP(in this case 192.168.10.6) in the machine from where you are trying to login.

Is it easy to fix?

The answer is Yes, If we take a close look at the output in your console there is one line to fix the issue “Add correct host key in C:\\users\your-username/.ssh/known_host to get rid of the message”. the location can differ from OS to OS.

Now, what to do?

We are almost at the end of the solution. Just open the file in edit mode → find the IP that has conflict → Remove the existing entry → retry login using SSH.

Success

Here I have tried to re-login and my known_host file will have a new SSH key for my IP 192.168.10.6

Thank you for bearing with me. Happy Sharing ❤.

--

--

Md Asiful Haque

Tech Enthusiastic, Extrovert, Ambitious, Fun Loving