Skip to content

Instantly share code, notes, and snippets.

@rizo
Created December 9, 2013 10:28
Show Gist options
  • Select an option

  • Save rizo/7870199 to your computer and use it in GitHub Desktop.

Select an option

Save rizo/7870199 to your computer and use it in GitHub Desktop.
Remove offending key from known_hosts.
remove() { perl -i -NE "print unless $1 .. $1" ~/.ssh/known_hosts; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment