vnc ssh tunnel problems

From: Edward (egoduk_at_NOSPAM_hotmail.com)
Date: 02/17/04


Date: Tue, 17 Feb 2004 15:32:32 -0000

I have 3 computers on my LAN

WinXP PC (192.168.6.2) VNC server
Win98 Laptop (192.168.6.8) VNC client
Solaris 8 server (192.168.6.4) SSH server

The laptop can establish a VNC connection to the VNC server running on the
pc.
Both the pc and the laptop can connect via SSH to the Solaris server.

I would like to tunnel the VNC connection through the SSH server.

I've tried:
PC connection to SSH server:
ssh -C -l root -R 5900:192.168.6.2:5900 192.168.6.4
which I believe reads:
Connect using compression as user root. Forward the local port 5900 on the
ssh server to port 5900 on the PC (VNC server)
(i.e. any connections made to the SSH server on port 5900 are effectively
made to the PC on port 5900??)

Laptop connection to SSH server:
ssh -C -l root -L 5900:192.168.6.8:5900 192.168.6.4
which I believe reads:
Connect using compression as user root. Forward the local port 5900 on the
laptop to port 5900 on the SSH server
(i.e. any connections made to the laptop on port 5900 are effectively made
to the SSH server on the same port??)

On the VNC server HKEY_LOCAL_MACHINE\Software\ORL\WinVNC3\Default
AllowLoopback is set to '1'.

I was hoping this would be enough to get it all working but, when I launch
VNC viewer on the laptop and attempt to connect to 'localhost', the VNC
connect box simply disappears.

The ssh connection from the laptop to the ssh server was made with 2 levels
of verbose logging. During the VNC localhost connection attempt, it output:

# debug1: Connection to port 5900 forwarding to 192.168.7.8 port 5900
requested
.
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 is O_NONBLOCK
debug2: fd 8 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]

#

I've tried snooping packets on the network but I'm not really sure what I'm
looking for. It would seem though that there is no SSH traffic between the
SSH server and the VNC server(PC) when the Laptop attempt the VNC tunnel
connection (SSH traffic can be seen between the laptop and the SSH server).
Could this be a problem with my SSHD setup?

Any help appreciated!

Thanks,

Edward.
(remove NOSPAM etc etc)



Relevant Pages

  • Re: vnc ssh tunnel problems
    ... I haven't been able to get it working with SSH encrypting both connections ... Works nicely for the important side of the connection - thanks! ... >>Both the pc and the laptop can connect via SSH to the Solaris server. ... >>I would like to tunnel the VNC connection through the SSH server. ...
    (comp.security.ssh)
  • Re: initiating connection from the remote host
    ... allows you to do reverse port forwarding meaning that you establish a SSH ... Pro Remote Desktop or UltraVNC through the tunnel from a home PC or the ... work laptop, whichever one is running the SSH server software. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Trying to run an ssh server on a laptop behind a router... mtu mismatch?
    ... I have forwarded the ssh port to the correct machine, and the packets are being routed correctly as confirmed by wireshark. ... The ssh server works fine when the laptop is connected directly to the modem. ... When the laptop is behind the router, ssh from the remote pc times out without connecting. ...
    (comp.os.linux.networking)
  • Re: ftp server question
    ... limiting on the SSH server, so it only gets attacked once every ... made to establish a new connection to my SSH server within a certain ... but trying to establish one connection after another. ... It would of course talk to the Windows "server" version, ...
    (alt.computer.security)
  • Re: ftp server question
    ... limiting on the SSH server, so it only gets attacked once every ... made to establish a new connection to my SSH server within a certain ... but trying to establish one connection after another. ... It would of course talk to the Windows "server" version, ...
    (alt.computer.security)