Skip to content

Instantly share code, notes, and snippets.

@kalendae
Created September 16, 2010 23:46
Show Gist options
  • Save kalendae/583402 to your computer and use it in GitHub Desktop.
Save kalendae/583402 to your computer and use it in GitHub Desktop.
reverse ssh tunneling (needed for facebook app dev)
on public machine edit /etc/ssh/sshd_config (centos)
add
AllowTcpForwarding yes
GatewayPorts yes
restart sshd service
on dev machine behind firewall
ssh publicmachinename -v -R :publicmachineport:localhost:localport sleep 99999
eg
ssh something.com -v -R :3008:localhost:3000 sleep 9999
-v is for verbose output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment