Skip to content

Instantly share code, notes, and snippets.

@SemanticallyNull
Created July 8, 2013 11:57
Show Gist options
  • Save SemanticallyNull/5948153 to your computer and use it in GitHub Desktop.
Save SemanticallyNull/5948153 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [[ -n $1 ]]; then
sed -i -e "${1}d" ~/.ssh/known_hosts
else
echo "USAGE: ${0} [line number]
fixhost
A quick command line tool to remove a line from your known hosts file to get it up and running again quickly."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment