Skip to content

Instantly share code, notes, and snippets.

@amerine
Forked from drbrain/ssh_config
Created March 20, 2013 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amerine/5202696 to your computer and use it in GitHub Desktop.
Save amerine/5202696 to your computer and use it in GitHub Desktop.
Host *+*
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') nc $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment