ssh x forwarding
Richard Campbell
richard.campbell@air2web.com
Tue Jan 28 07:47:00 GMT 2003
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.
More information about the Cygwin-xfree
mailing list