Last active
August 30, 2016 08:31
-
-
Save yusufhm/36cdaa35e08a070bd6e5 to your computer and use it in GitHub Desktop.
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
Host some-name | |
Hostname server-address(ip or hostname) | |
User username | |
ForwardAgent yes | |
# The first parameter is the port which you will access from | |
# your local computer. The second is the IP & Port on the remote | |
# server that you want to access | |
LocalForward 8085 127.0.0.1:80 |
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
#!/bin/bash | |
ssh -R <server_port>:localhost:<local_port> user@server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment