Skip to content

Instantly share code, notes, and snippets.

@maxgfr
Last active December 2, 2022 22:53
Show Gist options
  • Save maxgfr/3ef9aa6805d8c619d9be403e46562359 to your computer and use it in GitHub Desktop.
Save maxgfr/3ef9aa6805d8c619d9be403e46562359 to your computer and use it in GitHub Desktop.
How to create a port forwarding through ssh

Create a port forwarding through ssh

# ssh -L [my_machine_port]:[remote_machine_port] [remote_user]@[remote_ip]

ssh -L 5000:localhost:3200 [email protected] # Here I forward the remote 3200 port on my localhost:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment