Created
July 6, 2012 22:24
-
-
Save rca/3063092 to your computer and use it in GitHub Desktop.
Remove a line from the SSH known_hosts file.
This file contains hidden or 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
function khd | |
{ | |
[ -z $1 ] && echo "No line number given" && return -1 | |
sed -i -e "${1}d" ${HOME}/.ssh/known_hosts | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment