Skip to content

Instantly share code, notes, and snippets.

@paulrblakey
Created May 3, 2012 17:33
Show Gist options
  • Save paulrblakey/2587477 to your computer and use it in GitHub Desktop.
Save paulrblakey/2587477 to your computer and use it in GitHub Desktop.
Bash Shell script for cleaning up the known hosts in cases of aws pollution.
sed -e '/amazonaws/d' ~/.ssh/known_hosts > ~/.ssh/known_hosts2; mv ~/.ssh/known_hosts2 ~/.ssh/known_hosts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment