Skip to content

Instantly share code, notes, and snippets.

@rilindo
Created December 4, 2011 22:02
Show Gist options
  • Save rilindo/1431426 to your computer and use it in GitHub Desktop.
Save rilindo/1431426 to your computer and use it in GitHub Desktop.
Removes Hosts IP and backups existing known_hosts file
sed -i .`date "+%m%d%H%M%Y.%S"` 's/192.168.15.61\(.*\)//' ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment