16

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.

Chris S
  • 77,945
  • 11
  • 124
  • 216
Ozer
  • 263
  • 1
  • 2
  • 4

2 Answers2

24

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.

cmouse
  • 488
  • 3
  • 10
0

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

uSlackr
  • 6,412
  • 21
  • 37
  • 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