Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to make a tunnel between a server and laptop with Putty. The problem is, since the laptop has no public IP address, I have to make a reverse connection.

ASCII Artwork:

SERVER(PORT:6000) ----------> LAPTOP(PORT:7000)

However, since laptop has no public IP Address I have to:

SERVER(PORT:6000) <---------- LAPTOP(PORT:7000)

But, all the data coming from will be transferred from server to laptop.

share|improve this question

2 Answers 2

up vote 7 down vote accepted

In PuTTY go to Settings -> Connection -> SSH -> Tunnels. You can add port forwards there. For reverse forward, enter source port, and destination, but choose 'Remote' instead of 'Local'.

In your case, put 6000 in to source port, localhost:7000 in the Destination, and choose Remote.

share|improve this answer
    
Yeah, I was trying the same but I still can not connect :( What can be the problem ?? –  Ozer Oct 13 '11 at 12:54
    
How did you try? –  cmouse Oct 13 '11 at 13:50

You can do this with the -R option to ssh. It allows you to establish a connection backwards (well both ways). See this page for more

share|improve this answer
    
Thanks but I want to do it with putty, is there anyway to do it with putty ?? –  Ozer Oct 13 '11 at 12:53
    
Yes. The SSH Tunnels page allows you to set it up. The Help link should describe it. otherwise, use plink from the command-line –  uSlackr Oct 13 '11 at 13:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.