View Full Version : [ubuntu] [SOLVED] cannot open display ssh

November 9th, 2008, 11:15 AM
Hi everybody

i'm trying to use a remote desktop through ssh but every time i try to use gedit the terminal tells me

gedit U
cannot open display:
Run 'gedit --help' to see a full list of available command line options.

how can i fix this problem?

thanks in advance

November 9th, 2008, 11:41 AM
You have to use either the -X or the -Y command line argument with ssh to enable X11 forwarding. So if before, you said:

ssh user@host

Now say:

ssh -X user@host

Note that that is a capitalized X!

November 9th, 2008, 11:52 AM
i have tried -X already and did not work. it is working fine with -Y