Skip to content

Instantly share code, notes, and snippets.

@rponte
Last active September 26, 2023 23:04
Show Gist options
  • Save rponte/6417582 to your computer and use it in GitHub Desktop.
Save rponte/6417582 to your computer and use it in GitHub Desktop.
Opening a SSH tunnel
# ssh -L <local_port>:<remote_ip>:<remote_port> <user>@<gateway_ip>
ssh -L 1433:192.168.1.4:1433 owner@google.com
# or if you want to run in background without tty
ssh -f -N -T -L 8080:localhost:80 owner@google.com
@rponte
Copy link
Author

rponte commented Sep 26, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment