SSH from Windows to Linux w/port forwarding.

From: yddraig (yddraig_at_gmail.com)
Date: 09/22/05


Date: 22 Sep 2005 10:10:58 -0700

I have a Linux Server (Debian Sarge) behind a firewall that I need to
tunnel into and forward ports from. I can orward all the ports I need
from my laptop (Windows XP SP2) if I use either putty or Tunnelier from
bitvise. I've been attempting to tunnel from OpenSSH on Cygwin but
without much success. I can forward the RemoteDesktop port but not the
others. Here is the command I use to start ssh and create the tunnel
from xterm on Cygwin:

$ ssh -F ~/.ssh/home_ssh_config myserver.dyndns.org -N -f -v

Below are the contents of the above mentioned ssh config file:

LogLevel DEBUG3
Host myserver.dyndns.org
   HostName myserver.dyndns.org
   GatewayPorts no
   TCPKeepAlive yes
   Compression no
   # This one works
   LocalForward 3390 myserver.dyndns.org:3389 #MS Windows Remote
Desktop
   # These don't. Why?
   LocalForward 19150 myserver.dyndns.org:19150 #Gkrellm
   LocalForward 9000 myserver.dyndns.org:9000 #Slimserver Web
Interface
   LocalForward 3483 myserver.dyndns.org:3483 #Slimserver SB
Interface
   LocalForward 80 myserver.dyndns.org:80 #Local Apache Server

(Please note that my server is not actually named myserver.dyndns.org)
The debug output shows that ssh is listening and forwarding ports but
the clients for the respective services just time-out.

As I can succesfully forward ports with Putty and Tunnelier I'm
assuming that there is a problem with Cygwin.

Thanks in advance,
R. Owen.



Relevant Pages

  • Re: Prot Forwarding
    ... Al's SSH method would be the best. ... configure the remote control programs to use different ports on each ... that let you configure the ports in use. ... > Personally I use a Secure Shell tunnel to access multiple XP Pro ...
    (microsoft.public.windowsxp.network_web)
  • Re: Prot Forwarding
    ... Personally I use a Secure Shell tunnel to access multiple XP Pro boxes ... don't need to tunnel UDP ports. ... SSH does not support UDP through the tunnel. ... automatically launch a Remote Desktop session when the SSH tunnel is ...
    (microsoft.public.windowsxp.network_web)
  • Re: Is there an SSH client which will tunnel ALL ports (TCP & UDP)?
    ... will actually tunnel ANY traffic bound out of the client ... I guessed that ports in use could not be forwarded. ... >it's time for you to move beyond ssh, ... >>and route it through an SSH tunnel. ...
    (comp.security.firewalls)
  • Re: VPN (after Tunnel) connection impossible
    ... > and I asked to my ISP to create a rule to forward some ports (500 UDP, ... The tunnel works and for example if I ... execute ssh and other but doesn't works. ... > DEACTIVATED my Firewall in these tests and traffic from Wan to DMZ ...
    (comp.security.misc)
  • Re: VPN (after Tunnel) connection impossible
    ... > and I asked to my ISP to create a rule to forward some ports (500 UDP, ... The tunnel works and for example if I ... execute ssh and other but doesn't works. ... > DEACTIVATED my Firewall in these tests and traffic from Wan to DMZ ...
    (comp.security.firewalls)