vnc tunneling over ssh

From: Wolfgang Ebersbach (wolfgang.ebersbach_at_micronas.com)
Date: 01/07/04


Date: Wed, 07 Jan 2004 14:43:37 +0100

Hi together,
I try to tunnel a vnc connection over ssh in order to get trough a firewall:

vnc_host-->firewall-->vnc_client.

What I do ist:

vnc_client# ssh -L 5901:localhost:5901 vnc_host
 After login to vnc_host :
vnc_host# vncserver
 Which starts the vnc server on port 5901 on vnc_server, as expected.
 Then :
vnc_client# vncviewer localhost:5901
 or
vnc_client# vncviewer localhost:1
 which both leads to this result:
 At vnc_client:
vncviewer: VNC server closed connection
 and at vnc_server:
4409: channel 3: open failed: connect failed: Connection refused

 The problem can not be in SSH, because if I do X11 forwarding via SSH
 ( ssh -X vnc_server ) it works.
 If I try to forward the TCP port instead :
vnc_client# ssh -L 5801:vnc_client:5801 vnc_server
 ,I get the same problem as with port 5901. In fact, I can use any ports
 I want, vnc forwarding never works.
 There are no entries in the logfiles whatsoever. Several queries to google
 groups lead no useful results.

Any help would be greatly appreciated.

Regards,
   Wolfgang



Relevant Pages

  • Re: Remote Desktop Connection
    ... You can try a free two user version of SSL-Explorer to try it out. ... SSL-Explorer also supports a web based RDC and VNC access to desktop PCs on your network. ... OpenVPN is completely free like SSH. ... What if i have a linkys WiFi router, and does not have vpn feature, how could i secure the connection? ...
    (microsoft.public.windowsxp.work_remotely)
  • How did they get behind my NAT?
    ... this point I panicked and shutdown the VNC service ASAP. ... My question is how the attacker got to my VNC port! ... the internet through the router. ... client connection using local port number 5900 (which was also being ...
    (alt.computer.security)
  • Re: Security Breached
    ... I have a typical home network that looks like this: ... on both the DMZ and port forward questions. ... I have the vnc port blocked at the router so I presumed it was safe to ... they done it port forwarding over SSH (if your assumption of only SSH ...
    (alt.computer.security)
  • Re: Should I buy an older imac for my Grandma?
    ... a couple of weeks ago I finally got around to putting VNC Server ... At some point I'll probably protect it with SSH. ... Port forwarding port 22 through the router ...
    (comp.sys.mac.system)
  • UPDATE: Re: Question regarding SSH via Lantronix SCS100
    ... to do SSH and to authenticate the SSH connection with a local ... unexpectedly closed connection'. ... CONSOLE or AUX port on the router, or does it matter, and what ...
    (comp.dcom.sys.cisco)