-
-
Save nk-gears/12ff8fd0f4b041d635867479d059680a to your computer and use it in GitHub Desktop.
SSH config proxy host
This file contains 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> | |
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