Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created October 8, 2021 10:37
Show Gist options
  • Save amitpatelx/9dfbda107b832d7358ebde87cb60d595 to your computer and use it in GitHub Desktop.
Save amitpatelx/9dfbda107b832d7358ebde87cb60d595 to your computer and use it in GitHub Desktop.
SSH > Search and remove host from known_hosts

ssh-keygen -H -F hostname

Or, if SSH runs on port other than 22

ssh-keygen -H -F '[hostname]:2222'

ssh-keygen -R hostname

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