Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use Cygwin/X to ssh into a VirtualBox hosted Ubuntu Server which has had the various X bits and pieces installed:

ssh -X user@IPADDRESS

Once in, I can run gnome-terminal and the terminal pops up. Once in there I can open new tabs, run geany (a text editor like GEdit) and so-on, and it all works, the windows open and everything is fine.

Then, at some point, something happens and I am unable to open any new applications that make use of X. Existing applications function fine, but anything new will complain that it can't open the display. eg:

user@SERVER:/mnt/smb$ geany
Geany: cannot open display

I think this starts happening after I have used sudo to execute a command such as:

sudo apt-get install XXXX

After the problem starts, the DISPLAY environment variable is the same as it was before.

The only other piece of information that may be of use is that when I first log in to the machine, the following appears immediately after authentication:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.

Any ideas?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted
+50

Some ideas:

  1. Try to invoke ssh as ssh -Y, which is to say that you trust the machine you are ssh-ing to. This might have as effect only the removal of the first warning, but is worth a try.
  2. Ensure that no communication is blocked by a firewall
  3. Ensure that the remote server doesn't have the XC-SECURITY extension enabled (SECURITY shows up in the output of xdpyinfo).
  4. Use ssh -vvv for more info.
share|improve this answer
    
By installing x11tools in order to have access to xdpyinfo, this problem seems to have gone away :) If you have any input as to why, I would be very interested. –  Rich Mar 1 '11 at 15:47
    
Thanks for the bounty, even if this was a really left-handed fix. I would guess that the reason it works was a non-declared dependency. –  harrymc Mar 1 '11 at 18:07
add comment

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.