Created
April 18, 2011 16:18
-
-
Save eculver/925636 to your computer and use it in GitHub Desktop.
Reverse SSH tunnelling
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
Via: http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/ | |
On host behind NAT/firewall: | |
ssh -R 5000:localhost:22 [email protected] | |
On host (imatool.no-ip.org) connecting from outside: | |
ssh localhost -p 5000 | |
Then to proxy all traffic through that host, open a SOCKS proxy: | |
ssh -D 9999 username@localhost -p 5000 | |
And finally set up your local machine's browser to use that proxy on port 9999 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment