FW: Newbie install fails to connect through ssh tunnel
LUPTAK,MIROSLAV (HP-Slovakia,ex1)
miroslav_luptak@hp.com
Sun Oct 20 21:34:00 2002
Hello, Victor.
I would start with replacing "ssh -L 5902:q1:5901 q1" with
"ssh -L 5902:127.0.0.1:5901 q1"
Best regards,
Miro
> ----- Original Message -----
> From: "Victor Churchill" <jvictor@pobox.co.uk>
> To: <vnc-list@realvnc.com>
> Sent: Wednesday, October 02, 2002 6:03 AM
> Subject: Newbie install fails to connect through ssh tunnel
>
>
> Hello List,
>
> I have just yesterday downloaded andinstalled vnc 3.3.4 on two RedHat
> 7.1 boxes, one in the office and one at home.
> The office systems have ADSL connection to the Internet, with PAT (Port
> Address Translation) provided by the ISP and an internal hardware
> firewall. Because of the PAT I cannot easily access ports 5800+. Instead
> I am trying to use a connection through ssh as suggested in the realvnc
> docs.
>
> I have tried to stick to a simple install setup to begin with.
> On the remote (work) machine, as root:
> 1. ran vncpasswd
> 2. replaced 'twm &*' with 'startx -- :1 &' at end of the supplied
> xstartup file. (We don't have twm, and without the '-- :1' the xstartup
> was trying to start a server on display :0 which is already in use)
> 3. ran 'vncserver &', got response "New 'X' desktop is linux01:1".
>
> I can see Xvnc is running on the server:
> [root@linux01 13:40 ~/.vnc]v# ps -aefw | grep vnc
> root 8202 1 0 13:36 pts/17 00:00:00 Xvnc :1 -desktop X
> -httpd /usr/local/vnc/classes -auth /root/.Xauthority -geometry 1
>
> On my local (home) machine:
>
> 1. set up ssh to forward local 5902 traffic to remote 5901 (I have
> called the office machine q1 in my hosts file)
>
> [victor:09:25 victor]$ ssh -L 5902:q1:5901 q1
> victor@q1's password:
> Last login: ... etc ...
> [victor@linux01 13:20 ~]$
> (this gives me a login on q1 that I don't particularly require, but what
> the heck...)
>
> 2. Try to start the vnc viewer on the local end of the ssh tunnel, it
> fails:
>
> [victor:13:13 victor]$ vncviewer localhost:2
> VNC viewer version 3.3.4 - built Oct 2 2002 09:37:15
> Copyright (C) 2002 RealVNC Ltd.
> Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
> See http://www.realvnc.com for information on VNC.
> ReadFromRFBServer: rdr::EndOfStream
>
> I tried Googling for this error but got zero hits.
>
> In fact I see that same client-side failure even if i stop the server
> with "vncserver -kill :1". So I think I must have missed at least a
> couple of things - is anyone able to tell me ehre I went wrong?
>
> thanks in advance -
>
> --
>
> Victor Churchill Qonnectis Group Ltd
> _______________________________________________
> VNC-List mailing list
> VNC-List@realvnc.com
> http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
VNC-List@realvnc.com
http://www.realvnc.com/mailman/listinfo/vnc-list