Skip to content

Instantly share code, notes, and snippets.

@jodell
Created February 7, 2011 19:00
Show Gist options
  • Save jodell/814968 to your computer and use it in GitHub Desktop.
Save jodell/814968 to your computer and use it in GitHub Desktop.
# http://linuxcommando.blogspot.com/2008/10/how-to-disable-ssh-host-key-checking.html
sed -i 3d ~/.ssh/known_hosts
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected]
#Host 192.168.0.*
# StrictHostKeyChecking no
# UserKnownHostsFile=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment