This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Xt error:can't open display;ssh not passing $DISPLAY


The sshd server at the remote end also has to be configured to allow X forwarding. It's possible that could be to blame. There's a switch to (dis)allow it in /etc/ssh/sshd_config

By the way, if you are on system "local" and run "ssh -X remote", then the correct value of DISPLAY in the resulting terminal should NOT be local:0 or something similar. it should look like remote:10 or simply :10.

From: "John Curran Jr" <jppcurran@earthlink.net>
Reply-To: jppcurran@earthlink.net
To: "cygwin-xfree" <cygwin-xfree@cygwin.com>
Subject: Re: Xt error:can't open display;ssh not passing $DISPLAY
Date: Fri, 19 Jul 2002 13:6:52 -0400




> [Original Message]
> From: Harold L Hunt II <huntharo@msu.edu>
> To: <jppcurran@earthlink.net>
> Cc: cygwin-xfree <cygwin-xfree@cygwin.com>
> Date: 7/18/02 4:59:01 PM
> Subject: Re: Xt error:can't open display;ssh not passing $DISPLAY
>
> John Curran Jr wrote:
> > Several postings have suggested using secure ssh to display remote
clients,
> > and that ssh should handle details such as passing the $DISPLAY value.
> > I'm using cygwin version 1.3.11 under Win98(v. 2). I'm starting my
server
> > with startxwin.sh, the first line of which is "export
> > DISPLAY=127.0.0.1:0.0". That value is there when I echo at the local
shell
> > in X11. My ssh_config file is set to allow X11Forwarding. I'm using
ssh
> > to reach a remote unix system. I can log in but I can't display remote
> > clients; e.g., I type "xterm &" and get the message "xterm Xt error:
cannot
> > open display: ". And, the variable DISPLAY is empty on the remote
system.
> > Am I missing something obvious?
> >
> > Below are cygcheck.out, ssh_config, and startxwin.sh.
>
> John,
>
> Didn't you think for a moment that something of infinitly more
> importance than the contents of various config files would be the actual
> command line that you are using for ssh?

If knew I what I was doing wrong :-)

>
> Post the command line that you use to ssh to your remote machine. You
> do know that you have to run ssh from within an xterm in your
> Cygwin/XFree86 X server, right?
>
> Harold
>
>

I am running ssh within an xterm in my Cygwin/XFree86 X server; I have
tried command lines "ssh -X -l username ip_address", and "ssh -l username
ip_address",
the behavior is identical.

--- John Curran
--- jppcurran@earthlink.net

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]