i would say that the "localhost connection" has to be enabled... Vince
Vidar Remi Jensen said: > I'm sorry but I'm going to bring up a problem which has been subjected > to much discussion already: VNC and SSH. I've read these previous > discussions and tried the prescriptions, but I probably missed > something. Here's the problem: > > I want to run the VNC viewer on a windows PC (alice) and connect to a > unix machine (bob) running the VNC server (and the ssh daemon). [snip] > > When I specify something like: > ssh -L 5951:localhost:5901 bob > and start the viewer with > localhost:51 > The following error message shows up in the VNC server logfile on bob: > 24/03/03 17:20:59 Refused connection from client 127.0.0.1 > > I've been trying other tricks as well, with no luck, so I'm grateful if > someone comes up with an idea as to the problem. > > Thanks in advance, > Vidar R. Jensen Since VNC is logging the connection attempt, it seems your SSH tunnel is working correctly and VNC is refusing the connection. A Google search shows some people with early 7.x versions of RedHat complaining of this problem, what unix you running on Bob? Also, what version of VNC? Another thought would be that "-dontdisconnect" is set and VNC thinks someone is already connected, but at least in version 3.3.7 of VNC it is more verbose if that is the case. You could try using "bob" to connect rather than localhost, but since you mention that bob only accepts encrypted sessions, I doubt this will work: ssh -L 5951:bob:5901 bob -- William Hooper _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list From: "William Hooper" <[EMAIL PROTECTED]> Sender: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Subject: Re: SSH problem Date: Mon, 24 Mar 2003 20:58:40 +0100 Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.10) In-Reply-To: <[EMAIL PROTECTED]> X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.0.11 List-Help: <mailto:[EMAIL PROTECTED]> List-Subscribe: <http://www.realvnc.com/mailman/listinfo/vnc-list>,<mailto:[EMAIL PROTECTED]> List-Unsubscribe: <http://www.realvnc.com/mailman/listinfo/vnc-list>,<mailto:[EMAIL PROTECTED]> X-Original-Date: Mon, 24 Mar 2003 14:58:40 -0500 (EST) X-Hops: 2 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Vidar Remi Jensen said: > I'm sorry but I'm going to bring up a problem which has been subjected > to much discussion already: VNC and SSH. I've read these previous > discussions and tried the prescriptions, but I probably missed > something. Here's the problem: > > I want to run the VNC viewer on a windows PC (alice) and connect to a > unix machine (bob) running the VNC server (and the ssh daemon). [snip] > > When I specify something like: > ssh -L 5951:localhost:5901 bob > and start the viewer with > localhost:51 > The following error message shows up in the VNC server logfile on bob: > 24/03/03 17:20:59 Refused connection from client 127.0.0.1 > > I've been trying other tricks as well, with no luck, so I'm grateful if > someone comes up with an idea as to the problem. > > Thanks in advance, > Vidar R. Jensen Since VNC is logging the connection attempt, it seems your SSH tunnel is working correctly and VNC is refusing the connection. A Google search shows some people with early 7.x versions of RedHat complaining of this problem, what unix you running on Bob? Also, what version of VNC? Another thought would be that "-dontdisconnect" is set and VNC thinks someone is already connected, but at least in version 3.3.7 of VNC it is more verbose if that is the case. You could try using "bob" to connect rather than localhost, but since you mention that bob only accepts encrypted sessions, I doubt this will work: ssh -L 5951:bob:5901 bob -- William Hooper _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
