Skip to content

Instantly share code, notes, and snippets.

@timbirk
Created June 22, 2018 19:54
Show Gist options
  • Save timbirk/8d2020f7465f74ba3ab51c56d317e55e to your computer and use it in GitHub Desktop.
Save timbirk/8d2020f7465f74ba3ab51c56d317e55e to your computer and use it in GitHub Desktop.
SSH config for accepting / ignoring host certs on RFC1700 / RFC1918 addresses.
Match exec "ping -q -c 1 -t 1 %n | grep ' (127\.\| (10\.\| (172\.16\.\| (172\.17\.\| (172\.18\.\| (172\.19\.\| (172\.20\.\| (172\.21\.\| (172\.22\.\| (172\.23\.\| (172\.24\.\| (172\.25\.\| (172\.26\.\| (172\.27\.\| (172\.28\.\| (172\.29\.\| (172\.30\.\| (172\.31\.\| (192\.168\.'"
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment