Skip to content

Instantly share code, notes, and snippets.

@j18e
Created July 22, 2018 08:46
Show Gist options
  • Save j18e/cfd4623dd2ed4c150c2bb4756a35877b to your computer and use it in GitHub Desktop.
Save j18e/cfd4623dd2ed4c150c2bb4756a35877b to your computer and use it in GitHub Desktop.
Configure SSH Port Forwards
# 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