delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/10/15:55:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 10 Oct 2002 15:54:37 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin-xfree AT cygwin DOT com
To: Matthew Bailey <jmb AT erc DOT msstate DOT edu>
cc: cygwin-xfree AT cygwin DOT com, <cygwin AT cygwin DOT com>
Subject: Re: cygwin's ssh with Xwin
In-Reply-To: <Pine.SGI.4.44.0210101400340.520115-100000@Andy.ERC.MsState.Edu>
Message-ID: <Pine.GSO.4.44.0210101547130.11573-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 10 Oct 2002, Matthew Bailey wrote:

> I have the latest version of Cygwin and ssh.  I am trying to display
> another program remotely which I'm using Xwin32 5.2 to allow the display.
>
> The server always responds Can't connect to display :"0.0".
>
> I looked at my man pages for ssh and used the flag -X to enable forwarding
> of my X11.  But, the server still responds the same, and will not allow me
> to display my program.
>
> Can anyone help me with this problem?
>
> Thanks,
> M. Bailey

I'm sure this'll get redirected to cygwin-xfree, so I'm replying straight
there.

ssh, when run with X forwarding, sets up a special display on the target
machine.  The value of the DISPLAY variable should reflect that.
There are a couple of possibilities:

1) You are running 'ssh -X' from a bash prompt that does not have DISPLAY
set.  In this case ssh will silently ignore the -X option and will not set
up X forwarding.  To fix this, set DISPLAY to "localhost:0.0" before
invoking ssh.

2) (more likely from your symptoms) You have a login script that
automatically sets the DISPLAY to :0.0 on the target machine, overriding
the ssh-set value.  To fix this, find which script does that (could be
.bashrc, .profile, some other rc script, could even be /etc/profile if
your system administrator is sadistic/incompetent), and bracket the line
that assigns DISPLAY by (for sh/ksh/bash) 'if [ -z "$DISPLAY" ]; then' and
'fi'.

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


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