Skip to content

Instantly share code, notes, and snippets.

@MatthieuLemoine
Last active May 2, 2017 15:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MatthieuLemoine/033c54efa5b837c1bb65f401e74c6bc2 to your computer and use it in GitHub Desktop.
Save MatthieuLemoine/033c54efa5b837c1bb65f401e74c6bc2 to your computer and use it in GitHub Desktop.
SSH config proxy host
# ~/.ssh/config
Host <custom-name>
HostName <remote-host>
User <remote-user>
Port <remote-ssh-port>
IdentityFile ~/.ssh/id_rsa
ForwardAgent yes
ProxyCommand ssh -o 'ForwardAgent yes' <proxy-user>@<proxy-host> 'ssh-add && nc %h %p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment