Mac OS X Remove SSH Known Host

If you've recently rebuild the server you may get an error something like this:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is

To remove the current RSA key, please do the following:

1. Open Terminal
2. Perform one of these commands:
ssh-keygen -R server-name
ssh-keygen -R server.IP address
ssh-keygen -R 216.99.153.26
ssh-keygen -R server1.example.com
After that's done, you should be able to SSH back into your server.
  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

How to clear DNS cache on Mac OS X?

  Go to Applications. Go to Utilities. Open the Terminal application. Type:...