Skip to content

Instantly share code, notes, and snippets.

@jdhao
Created September 17, 2019 03:50
Show Gist options
  • Save jdhao/43d2d12c3d9e9e3cb31878f4452cb704 to your computer and use it in GitHub Desktop.
Save jdhao/43d2d12c3d9e9e3cb31878f4452cb704 to your computer and use it in GitHub Desktop.
Host key verification failed

When log in to server, I see the following error message;

RSA host key for xxxx has changed and you have requested strict checking. Host key verification failed.

You can remove the offending host key from file ~/.ssh/known_hosts. For example, if line 1 includes the offending hosts info, just remove it:

sed -i.bak -e '1d' ~/.ssh/known_hosts

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment