delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/25/10:03:52

Message-Id: <200109251403.f8PE3ql04827@delorie.com>
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Mark Paulus" <commpg AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>,
"Keith Starsmeare" <keith_starsmeare AT yahoo DOT co DOT uk>
Date: Tue, 25 Sep 2001 08:00:27 -0600
Reply-To: "Mark Paulus" <commpg AT yahoo DOT com>
X-Mailer: PMMail 2000 Professional (2.20.2350) For Windows 2000 (5.0.2195;2)
In-Reply-To: <000c01c145c5$6bff93b0$5d754789@edinstonehaven>
MIME-Version: 1.0
Subject: Re: Using ssh with VNC Viewer

If you have firewall(s) between you and the other machine, then
your ssh line is slightly incorrect.  It took me two days, and a lot of 
reading in the O'Reilly book, "SSH:  The Secure Shell".  It all boils
down to a couple of paragraphs in section 9.2.4.  Also took some 
time using the iptraf package, which allowed me to watch the packets
getting thrown around.  Anyway, the upshot is that you need to 
change your ssh line to the following:

ssh -v -C -L 5902:localhost:5901 edin_kampala

The basic problem is that ssh is trying to route the connections from the remote
machine back to your edin_kampala machine.  If you have any firewalls
in the way, then those packets never get there.  You have to route them to 
localhost, and then ssh takes them back through it's secure pipe.

I also add a -R 5904:localhost:5900, which allows me to use the same
VNC pipe to connect to my work Win2K box from home.


On Tue, 25 Sep 2001 14:24:31 +0100, Keith Starsmeare wrote:

>I've recently started using AT&T's windows based VNC viewer
>(http://www.uk.research.att.com/vnc) and I'm trying to use it with cygwin's
>ssh.
>
>I use this command to open the ssh to the remote machine and listen on the
>ports documented.
>
>    ssh -v -C -L 5902:edin_kampala:5901 edin_kampala
>
>then I open the vncviewer:
>
>    vncviewer localhost:2
>
>and I get the debug output (because of the -v on the ssh line)
>
>    debug1: Connection to port 5902 forwarding to edin_kampala port 5901
>requested.
>    debug1: fd 8 setting O_NONBLOCK
>    debug1: fd 8 IS O_NONBLOCK
>    debug1: channel 2: new [direct-tcpip]
>    debug1: channel 2: open confirm rwindow 32768 rmax 16384
>
>so something's working. But I don't get the vncviewer's prompt for a
>password.
>
>Has anyone else tried this and got it working? I found one thread recently,
>but I couldn't follow it and I wasn't sure if they were using a windows or
>cygwin-xfree based vncviewer. I don't really need to use the ssh, but as I'm
>all ready connected to the machine using ssh, I thought why not use it for
>the vncviewer too!
>
>Regards
>
>Keith
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019