This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: ssh x forwarding
- From: Richard Campbell <richard dot campbell at air2web dot com>
- To: 'Patrick Nelson' <pnelson at neatech dot com>, "'cygwin-xfree at cygwin dot com'" <cygwin-xfree at cygwin dot com>
- Date: Mon, 27 Jan 2003 12:59:52 -0500
- Subject: RE: ssh x forwarding
- Reply-to: cygwin-xfree at cygwin dot com
This probably should have been on the xfree list.
>From: Patrick Nelson [mailto:pnelson@neatech.com]
>
>In ssh you get x forwarding. But, I can't seem to get it working. A
>command like:
>
> ssh -l <user> <system> <x app>
>
>always responds with something like:
>
> Gtk-WARNING **: cannot open display:
>
>Is there some configuration that needs to take place in cygwin first? Yes
I
>can log in by dropping the <x app> part and yes the <x app> is available.
>Tried running the above from a terminal that displayed after doing a
>"startx" too... same result. So I have to figure I just don't have
>something setup correctly.
At a minimum, you need to have the DISPLAY variable set before you
execute the ssh, and you need to use the X forwarding (-X) option
to ssh
so:
export DISPLAY=localhost:0.0
ssh -X -l <user> <system> <x app>
-Richard Campbell.