Created
October 11, 2021 06:15
-
-
Save PatelUtkarsh/e1c134cb652732b1b58fb4a0c84ba1a7 to your computer and use it in GitHub Desktop.
ssh config to foward remote port over ssh - create new or append on .ssh/config
This file contains hidden or 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
Host dockerServer | |
Hostname server-host-or-ip | |
User ssh-remote-user | |
LocalForward 8088 localhost:8088 | |
LocalForward 3306 localhost:3306 | |
ServerAliveInterval 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To connect docker client to remote:
Test with:
To open tunnel: