X-Spam-Check-By: sourceware.org
Message-ID: <a5f030530603170819y24fb917fn2b155d81f1f4b817@mail.gmail.com>
Date: Fri, 17 Mar 2006 11:19:13 -0500
From: "Brett Serkez" <bserkez@gmail.com>
To: cygwin@cygwin.com
Subject: Re: How to run X Session from RH8 via ssh -X? How to run vnc via ssh?
In-Reply-To: <441ad940.063e2b04.0270.19ddSMTPIN_ADDED@mx.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <Pine.GSO.4.63.0603020820510.28678@access1.cims.nyu.edu> 	 <441ad940.063e2b04.0270.19ddSMTPIN_ADDED@mx.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k2HGJOwJ030732

<snip>
> However, I cannot seem to start an X session from my "ssh  -X -p 892
> Administrator@209.22.31.134" session.
<snip>

I have previously reported this behavior, and not seen a fix, it used to work.

The problem is running xauth under the covers hangs.

If you add -v -v -v to your line above, you'll see it hang like:

debug2: x11_get_proto: /usr/X11R6/bin/xauth -f
/tmp/ssh-c96kVgf686/xauthfile generate 127.0.0.1:0.0
MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/null

If you remove the X forwarding switch (i.e., not use -X) you should be
able to login.

If you kill the X server and/or kill the hung xauth process, an
'empty' ssh Window (non-X) will appear, indicating to me that for some
reason, xauth is looking for input from the console vs. stdin.

As a work around, you can manually reverse forward the display, something like:

ssh -R 6001:localhost:6000 user@system

then manually setting your display, in the above case:

export DISPLAY=:1

Manually picking a port as above can interfere or fail if it is
already in use, using the -X (or -Y) enlists the sshd on the target to
find a free port.

Brett

--
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/


