host key verification failed

October 13, 2013 5.5k views
i was having trouble installing ZenCart on my server, so i decided to start over completely w/ a new drop. i deleted my previous drop and started on a new one. i recieved the password from DO but now, when i login via the command line using ssh i get a 'host key verification' failed notice. so aggravated, what should i do?
3 Answers

When you connect to a server via SSH the server's "fingerprint" is saved on your file. You will see this warning if the fingerprint for the server is different than the last time you connected to it. As the warning states, this could be a sign of a "man-in-the-middle attack."

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
Please contact your system administrator.
Add correct host key in /home/foo/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/foo/.ssh/known_hosts:120
  remove with: ssh-keygen -f "/home/foo/.ssh/known_hosts" -R your.ip.address
RSA host key for has changed and you have requested strict checking.
Host key verification failed.

The server is identified by its IP address. So if you create a droplet, destroy it, and create a second one that has the same IP address, you will see this warning. In this case, you can safely ignore it. To remove the warning and connect to the new server, run:

ssh-keygen -f "~/.ssh/known_hosts" -R YOUR.IP.ADDRESS
Have you considered WordPress with WooCommerce?
Here's a link to a list of possible reasons:
  • Hey Pablo, having found this page via a web search, may I just say, you’re an asshat.

  • I'm inclined to agree with our insightful friend, aral.

  • That's definitely not a helpful answer. I've added a new one for the sake of folks finding this old question on Google.

  • Not to be too encouraging of that kind of answer but, it was slightly funny. Also, the first result helped. it showed where to delete the old verification so you could re verify it. This Solved it for me showed me.

Have another answer? Share your knowledge.