Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Last active April 1, 2016 17:21
Show Gist options
  • Save erangaeb/42ddee05063b4b03daab15317e6184e7 to your computer and use it in GitHub Desktop.
Save erangaeb/42ddee05063b4b03daab15317e6184e7 to your computer and use it in GitHub Desktop.
SSH local port forwarding syntax
# command
ssh -L <local-host>:<local-port> <container-ip>:<container-port> <username>@<remote-host>
# -L : indicates, local portforwarding
# <local-host> : local machine ip, its optionl(default localhost)
# <local-port> : local port to listen
# <container-ip> : container/service ip
# <container-port> : container/service port
# <username> : username of remote host
# <remote-host> : remote host ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment