Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hminle/220670fde696adeb7699f683983d7fcb to your computer and use it in GitHub Desktop.
Save hminle/220670fde696adeb7699f683983d7fcb to your computer and use it in GitHub Desktop.
RSA Host Key has been changed.

Solution for RSA host key for <ip_address> has changed and you have requested strict checking:

Method 1: Remove keys

ssh-keygen -R <server_name>

(or)

ssh-keygen -R <ip_address>

Method 2: Delete key from /home/user/.ssh/known_hosts

vim /home/user/.ssh/known_hosts +linenumber

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