Surf the Dream A discourse of links and articles from Justin Avery

Warning remote host identification has changed ssh

This was another fun error message that I received while putting back together my hacked server. This appears when trying to SSH into the Media Temple server through the Terminal Application on Mac OSX.

The solution.

You need to clear the key that already exists in your known host….

perl -p -i -e 's/^example.com.*n//;' ~/.ssh/known_hosts

and then you follow that up by regenerating a new key

ssh-keygen -R example.com

Now you should be able to access the server through an SSH terminal session and continue the rebuild.

Surf the Dream is a blog that has been running since the mid 2000's when it started on BlogSpot. Over the years it's been rebranded as justinavery.me (now my resume) and JaveryDesign.com (which now redirects back to this site).

I offer consultation services through Simple Things, produce a range of educational pocket notebooks, write about the Universe and run a responsive design and a RWD Weekly Newsletter