Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

$ echo $DISPLAY; echo $XAUTHORITY
localhost:11.0

$ xauth list
machine/unix:12
machine/unix:10
machine/unix:11
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

1 Answer 1

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

 
discard

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.