Skip to content

Instantly share code, notes, and snippets.

@mylesmegyesi
Created May 9, 2012 02:15
Show Gist options
  • Select an option

  • Save mylesmegyesi/2641253 to your computer and use it in GitHub Desktop.

Select an option

Save mylesmegyesi/2641253 to your computer and use it in GitHub Desktop.
Pair with ssh reverse tunneling
# Set up aws server to use as ssh proxy
# open /etc/ssh/sshd_config with sudo
# add 'GatewayPorts yes' anywhere
# restart server
# server: ec2-23-22-46-142.compute-1.amazonaws.com
# server port: 12345
# server user: ubuntu
# host port: 2222
# On host machine
ssh -nNTR 12345:localhost:2222 ubuntu@ec2-23-22-46-142.compute-1.amazonaws.com
# On clients
ssh vagrant@ec2-23-22-46-142.compute-1.amazonaws.com -p 12345
@sl4m
Copy link
Copy Markdown

sl4m commented Jun 29, 2012

This is totally public

@dadarek
Copy link
Copy Markdown

dadarek commented Dec 21, 2012

This is pretty public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment