Skip to content

Instantly share code, notes, and snippets.

@zviederi
Last active February 8, 2019 08:51
Show Gist options
  • Save zviederi/72c2bf412a1c1755f16b5a34f2c7df8a to your computer and use it in GitHub Desktop.
Save zviederi/72c2bf412a1c1755f16b5a34f2c7df8a to your computer and use it in GitHub Desktop.
SSH Port Forwarding
Hint, how to use port forwarding, which allows forward traffic on a port of your local computer to the SSH server, which is forwarded to a destination server.
On your local computer, type in command line:
ssh -N -L 7000:destination.server.com:9300 user@example.com
Any traffic comes to this port is sent to the SSH server and traffic received is sent to port 9300 of destination.server.com, which is the server itself.
Now, you get access to use 127.0.0.1 as the host and 7000 as the port.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment