Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Last active August 30, 2016 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufhm/36cdaa35e08a070bd6e5 to your computer and use it in GitHub Desktop.
Save yusufhm/36cdaa35e08a070bd6e5 to your computer and use it in GitHub Desktop.
SSH Tunnel
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
#!/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