Fixing "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" problem

I use HortonWorks Sandbox for learning/trying out Hadoop features. Now the way Hortonworks Sandbox works is your supposed to download the VM and then ssh into it using ssh root@127.0.0.1 -p 2222

for connecting to it or playing with it. Initially i had HDP 2.1 sandbox but when i downloaded HDP 2.2 and tried to connect to it i got WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! error. So basically both HDP 2.1 and HDP 2.2 has a different SSH key but your trying to refer them using same IP 127.0.0.1 and your machine says hey something is wrong your ip is same but SSH key does not match
In order to solve this problem, all i did was to open /Users/test/.ssh/known_hosts file in text editor and then i searched for 127.0.0.1 and i removed the line that started with this ip and saved my known_hosts file
Now when i rerun the ssh root@127.0.0.1 -p 2222

command i am able to connect to the HDP 2.2 image ok.

2 comments:

Abhi said...

Thanks for info....
Website development in Bangalore

massage dha lahore said...

A very informative and practical guide that clearly explains the reason behind the “Remote Host Identification Has Changed” warning and the importance of maintaining SSH security. The troubleshooting steps are easy to understand and highlight the need to verify host keys carefully before making changes. This article is helpful for system administrators and developers who want to resolve connection issues while keeping secure remote access practices in place. Great work sharing such a valuable technical solution.
best colors for shalwar kameez
apex retaklik