Remote login, then nothing happens
Igor Pechtchanski
pechtcha@cs.nyu.edu
Mon Aug 29 22:13:00 GMT 2005
On Mon, 29 Aug 2005, mrflippy wrote:
> Quoting Igor Pechtchanski <pechtcha@XX.XXX.XXX>:
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>. Thanks.
> > > > If you open a non-X cygwin session in a "dos box", and then type:
> > > > cygwin-prompt> DISPLAY=:0 xwininfo.exe -root
> > > > Does that show information or an error message?
> > >
> > > It waits a minute, and then gives me:
> > > xwininfo: unable to open display ':0'
> > > usage: xwininfo [-options ...]
> >
> > Heh. To get X forwarding over ssh, you need at least 2 things: a
> > running X server, and for ssh to know which display the X server runs
> > on[*]. The above seems to indicate that the X server is either not
> > running, or is running on the wrong display.
>
> Ah, I may have misunderstood the original question, as I didn't run the
> X server for that. When I was working with it on my own, I did have the
> X server running. However, I was trying to connect to the remote server
> from an xterm. (the FAQ/docs indicated that was the correct way) I'll
> try connecting from just a regular cygwin session (with an X server
> running) tonight when I get home from work. I'll look at your other
> questions later on tonight too.
Well, actually, running it from an xterm essentially ensures that the X
server is running -- as long as DISPLAY is set properly (and it usually is
in an xterm), there should be little difference between running ssh from
an xterm or from a console shell. Unless... Make sure you're running a
Cygwin ssh client, or it may not react nicely to ptys (Cygwin's
implementation of ttys) that xterm uses.
Do try running ssh with -x, though, just to confirm that the problem is
indeed with X forwarding, and not generally with ssh.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
More information about the Cygwin-xfree
mailing list