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: ssh x forwarding


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.


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