delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/06/21:50:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4D4F5DE3.5030202@cygwin.com>
Date: Sun, 06 Feb 2011 21:50:11 -0500
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygstart through SSH tunnel
References: <30850233 DOT post AT talk DOT nabble DOT com> <iij3sh$s24$1 AT dough DOT gmane DOT org> <30853289 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <30853289.post@talk.nabble.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 2/5/2011 2:31 PM, davej1983 wrote:
>
> Thanks for your help, and I will definitely look into Cygwin/X.
>
> However, from the way you explained it, I'm not sure if I clearly explained
> what I was trying to do. I'm not actually trying to get the file to open on
> my local computer, rather I am trying to get them to open/execute on the
> remote computer.

Yes, that is clear.  And that's where the problem is.

> For example if I am physically at Computer 1, and I tunnel into Computer 2,
> I want the file to open on the screen of Computer 2. And what I don't
> understand is that when I am physically at Computer 2 and type "cygstart
> test.txt" it opens fine, its only when I do it over the tunnel it doesn't
> work. As far as I understood it, when you are logged in through a SSH
> tunnel, it is as if you are physically at the remote computer running
> Cygwin.

Yes and no.  It depends what you're trying to do and the abilities that
you have as a remote user.

> Is there some kind of block (permissions etc...) that prevent these commands
> from being executed remotely?

In the case you described, the short answer is yes.  MS sees remotely logged
in users starting apps that use and manipulate the local screen as a security
hole.  And so they disallow access to the local screen.  This simple
explanation glosses some technical details.  If you're looking for the
full details, you're best bet is to review the email archives where this
has been discussed many times in the past.  But to sum it all up in a
sentence, Windows doesn't want you to work this way so it's actively trying
to keep you from doing this.

-- 
Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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