Skip to content

Instantly share code, notes, and snippets.

@shkumagai
Created November 17, 2016 03:27
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 shkumagai/173e732fe0c64bc6785aed17ddb987f1 to your computer and use it in GitHub Desktop.
Save shkumagai/173e732fe0c64bc6785aed17ddb987f1 to your computer and use it in GitHub Desktop.
ServerAliveInterval 60
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ecdsa
ForwardAgent yes
#
# General Proxy Setting (http://bit.ly/1MD3d24)
#
Host */*
ProxyCommand ssh -W "$(basename "%h")":%p "$(dirname "%h")"
Host *+*
ProxyCommand ssh -W "$(sed -E 's/.*\+//'<<<"%h")":%p "$(sed -E 's/\+[^\+]*//'<<<"%h")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment