Skip to content

Instantly share code, notes, and snippets.

@PharaohKJ
Created June 5, 2016 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharaohKJ/0156e134245cd160f283b387ee3b1790 to your computer and use it in GitHub Desktop.
Save PharaohKJ/0156e134245cd160f283b387ee3b1790 to your computer and use it in GitHub Desktop.
host="target-hostname"
ssh-keygen -R $host
ssh-keyscan -H $host >> ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment