Skip to content

Instantly share code, notes, and snippets.

@aldoridhoni
Created June 29, 2013 18:50
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 aldoridhoni/5892214 to your computer and use it in GitHub Desktop.
Save aldoridhoni/5892214 to your computer and use it in GitHub Desktop.
#
# SSH port forwarding to server
#
remote_ip=8.8.8.8
remote_user=root
local_port=22
remote_port=2222
ssh -f -N -R $remote_ip:$remote_port:localhost:$local_port $remote_user@$remote_ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment