Created
July 22, 2018 08:46
-
-
Save j18e/cfd4623dd2ed4c150c2bb4756a35877b to your computer and use it in GitHub Desktop.
Configure SSH Port Forwards
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
# in ~/.ssh/config | |
# run `ssh application-server` to use forward, then `curl localhost:8080` | |
Host application-server | |
HostName bastion.mycloud.app | |
User admin | |
ForwardAgent yes | |
ForwardX11 yes | |
LocalForward 8080 app-server-01.mycloud.local:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment