Daniele Tartarini PDF Print E-mail
Written by Daniele Tartarini   
Tuesday, 15 February 2011 19:21

Curriculum Vitae Daniele Tartarini


Add a comment
 
bypass firewall and Nat with reverse ssh tunnel PDF Print E-mail
Written by Daniele Tartarini   
Monday, 26 July 2010 13:05

On the destination computer type the following command. Replaceing middleuser with your name and replacing middle with the domain of the middle computer.

ssh -R 10002:localhost:22 middleuser@middle

This will open port 10002 for listening and forward all future connections to port 22 at destination. This connection must remain on the entire time to ensure that you can access your destination computer whenever you want.

Now if sshd is set to use GatewayPorts you should be able to connect with this:

ssh destinationuser@middle -p 10002

If you are not sure if GatewayPorts is on or you don’t have the access to change it use the following method to connect:

First connect to the middle computer how you would normally.

ssh user@middle

Then connect to the localhost of the middle computer on port 10002.

ssh user@localhost -p 10002

Note: The port 10002 is arbitrary you can use any port you want.

 

 

How to bypass firewall and nat with reverse ssh tunnel


Add a comment
Last Updated on Tuesday, 27 July 2010 10:20
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 11

Latest Tweets (by JoomlaWorks)

Daniele Tartarini, Powered by Joomla!; Joomla templates by SG web hosting