Skip to content

Instantly share code, notes, and snippets.

@geedew
Last active February 18, 2020 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save geedew/9272386 to your computer and use it in GitHub Desktop.
Save geedew/9272386 to your computer and use it in GitHub Desktop.
Quickly removing a ~/.ssh/known_hosts entry
# ssh-keygen -R hostname [-f known_hosts_file]
# ssh-keygen -r hostname [-f input_keyfile] [-g]
#e.g.
ssh-keygen -R 192.168.99.99
ssh-keygen -R mytestdomain.vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment