Created
November 27, 2013 00:10
-
-
Save nohtyp/7668616 to your computer and use it in GitHub Desktop.
sed one-liner to remove ssh-key output from known_hosts example: if offending ssh-key is on line 15 in known_hosts then the script would be ran as:
sed -if '15d' /home/<user>/.ssh/known_hosts. This script can be used for many other issues.
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
sed -if '<number>d' file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment