Last active
May 2, 2017 15:26
-
-
Save MatthieuLemoine/033c54efa5b837c1bb65f401e74c6bc2 to your computer and use it in GitHub Desktop.
SSH config proxy host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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