« Return to Thread: X forwarding

Re: X forwarding

by René Berber-2 :: Rate this Message:

Reply to Author | View in Thread

SteveS wrote:
[snip]

> In Cywin I then do
>
> ssh -Y username@hostname
>
> and get a command prompt from the Ubuntu server. Running a graphical app (eg
> gedit) returns
>
> cannot open display: (null)
>
> There are suggestions online to manually set the display, but as I
> understand that's incorrect if you are doing X forwarding.

The suggestion meant to set DISPLAY on the client side (Cygwin), you are correct
about not changing it on the server side.

Just do:

export DISPLAY=localhost:0:0
ssh -Y ...
--
René Berber


--
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/

 « Return to Thread: X forwarding