Skip to content

Instantly share code, notes, and snippets.

@andywirv
Created December 11, 2017 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andywirv/67e3328e74f98246619b0d2431610727 to your computer and use it in GitHub Desktop.
Save andywirv/67e3328e74f98246619b0d2431610727 to your computer and use it in GitHub Desktop.
SSH Tunnel via multiple hosts making use of ~/.ssh/config
Host tunnel
Hostname [host_with_access]
ProxyJump [bastion_host]
LocalForward [local_port] [remote_host]:[remote_port]
#Start tunnel with ssh -N tunnel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment