Created
November 12, 2013 16:05
-
-
Save cgkio/7433456 to your computer and use it in GitHub Desktop.
Fix Offending key in ~/.ssh/known_hosts file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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