Skip to content

Instantly share code, notes, and snippets.

@tomasinouk
Last active August 29, 2015 14:11
Show Gist options
  • Save tomasinouk/3834f6446116667ddf9c to your computer and use it in GitHub Desktop.
Save tomasinouk/3834f6446116667ddf9c to your computer and use it in GitHub Desktop.
Disable strict host checking in OS X for IP subnet
# You will need to probably create ~/.ssh/config file or edit, and add the following lines:
# Host [IP Address]
# StrictHostKeyChecking no
# UserKnownHostsFile=/dev/null
# A example for whole 192.168.0.0/16 IP subnet:
Host 192.168.*.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
# A example for 10.0.0.0/24 IP subnet:
Host 10.0.0.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment