Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created November 12, 2013 16:05
Show Gist options
  • Save cgkio/7433456 to your computer and use it in GitHub Desktop.
Save cgkio/7433456 to your computer and use it in GitHub Desktop.
Fix Offending key in ~/.ssh/known_hosts file
perl -pi -e 's/\Q$_// if ($. == 6);' ~/.ssh/known_hosts
# Note: Change the 6 according to the line number shown in the terminal error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment