delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/01/09:29:44

X-Spam-Check-By: sourceware.org
Date: Wed, 1 Aug 2007 15:29:21 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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: <p06240804c2d62eb767d6@[192.168.1.8]>
Mime-Version: 1.0
In-Reply-To: <p06240804c2d62eb767d6@[192.168.1.8]>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


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