SSH-VNC works on LAN but not through router/WAN
Mon Jan 20 15:39:00 2003
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of Jeffrey J. Kosowsky
> I am running tight-vnc 1.2.7 with the server on my RH8.0/Linux 2.4.20
> Linux machine and the client on my WIn2k laptop which runs cygwin ssh.
> I can tunnel vnc through ssh with local network addressing on the
> 192.168.1 subnet,
> e.g., typing:
> ssh 192.168.1.100 -l username -C -L 5902:192.168.1.100:5901
> sets up a SSH connection and then I can open a vnc connection from the
> win2k client using localhost:2 as the vnc server name
> However, if I type the wan IP address 220.127.116.11 in place of
> the local area 192.168.1 subnet address I get a ssh connection but can
> no longer connect with the vnc win2k connect using the same
> 'localhost:2' server name.
As discussed YESTERDAY for the forwarding host you need to use the internal
IP. If you use the external IP then SSH tries to talk to your firewall.
ssh 18.104.22.168 -l username -C -L 5902:192.168.1.100:5901