Skip to content

Instantly share code, notes, and snippets.

@alepez
Created May 15, 2013 09:56
Show Gist options
  • Save alepez/5582882 to your computer and use it in GitHub Desktop.
Save alepez/5582882 to your computer and use it in GitHub Desktop.
remove Offending key ssh
sed -i -e "$( ssh root@vimageoslive 2>&1 | grep Offending | sed 's/.*:\([0-9]\+\).*/\1/' )d" .ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment