Skip to content

Instantly share code, notes, and snippets.

@fizerkhan
Last active March 28, 2023 19:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fizerkhan/41f9c525db5b3b16bfcb to your computer and use it in GitHub Desktop.
Save fizerkhan/41f9c525db5b3b16bfcb 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