Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I connect to a server over ssh with

ssh -CX server

ok, And I launch remote graphical apps, ok. But after some minutes I get

Gtk-WARNING **: cannot open display

And I have to reset the ssh connection.

Added some outputs


$ xauth list
share|improve this question
What application is producing this message? What do you mean by “I have to reset the ssh connection”: do you mean you can't start new X applications, or that all X applications crash, or that the whole connection including the command line is terminated (with what error message if any)? – Gilles Jul 31 '11 at 17:46
I can't start new X applications – JuanPablo Jul 31 '11 at 17:54
Please post the output of echo $DISPLAY; echo $XAUTHORITY in a working connection and in a failed connection. Also, the output of xauth list | awk '{print $1}' (anonymize machine names if you like). – Gilles Jul 31 '11 at 18:02
I added to output to question – JuanPablo Jul 31 '11 at 18:09
Is that in a working or failed connection? And please post the other one as well, the point is to compare the two. – Gilles Jul 31 '11 at 18:12
up vote 0 down vote accepted

I added this to my .ssh/config

host myHost                                                           
user myUser
port 22
hostname ipHost
ForwardX11 yes
Compression yes
ForwardX11Trusted yes
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.