X-Spam-Check-By: sourceware.org Date: Wed, 1 Aug 2007 15:29:21 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Launching TightVNC over ssh using cygwin Message-ID: <20070801132921.GF13674@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Aug 1 08:39, Daniel Griscom wrote: > I'm using TightVNC on a remote windows machine for maintenance > purposes, communicating via an ssh tunnel (sshd installed using > cygwin). > > Everything works when I start TightVNC as a Windows service, but I'd > like to leave TightVNC turned completely off, and only launch it when > I need it. To do that I need to be able to launch it from an ssh > command line. > > I can ssh in and use cygstart to launch TightVNC, but then when I try > to connect to TightVNC the connection is refused. Here's the TightVNC > log (first four lines is when I launched TightVNC; rest is my > attempted connection): > [...] > >vncServer.cpp: failed to initialize desktop object ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That's a hint. It's not Cygwin, it's how you started the sshd service. If you want to start native applications from sshd, which are supposed to access the console window, you have to start the service with the "Interact with desktop" flag set. See cygrunsrv's -i option (cygrunsrv --help). Please note that this won't work under Vista anymore due to new security settings in Vista. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/