My desktop home computer (see the image below) connects via SSH to the Office Server (via internet, of course).
I connect to that server from my home desktop (running Linux) by using the OpenSSH client from Linux (note the
-g for "gateway" switch):
ssh MyUser@OfficePublicIP -L 22222:172.26.0.10:22 -g
So, when the connection is made, I have a running SSH tunnel to the server for my LAN:
luis@HomeDesktop:~$ netstat -ano | grep "22222" -i tcp 0 0 0.0.0.0:22222 0.0.0.0:* LISTEN off (0.00/0/0)
And now I can go to my home laptop and open an SSH session to the office server via my Home Desktop (running Windows) using PuTTY by doing:
PuTTY 192.168.0.101 -P 22222
The process is shown in this scheme (follow the black line arrows):
The problem is: I need to run Windows on my home desktop, instead of Linux. And I certainly prefer to use the Putty SSH client (I like its terminal configurability).
But Putty v0.63 seems not to have this -g (gateway) option that allows external connections to forwarded (tunnelized) ports.
I have done a research through the putty help .chm file, but nor Putty neither its associated tool PLink seem to have this option.
Does anyone know how to tunnelize connections to the office server from my home desktop, but keep using PuTTY?