Last active
September 26, 2023 23:04
-
-
Save rponte/6417582 to your computer and use it in GitHub Desktop.
Opening a SSH tunnel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://blog.tjll.net/ssh-kung-fu/