LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Xlib: connection to ":0.0" refused by server (https://www.linuxquestions.org/questions/linux-desktop-74/xlib-connection-to-0-0-refused-by-server-834587/)

dexznrl 09-26-2010 10:48 AM

Xlib: connection to ":0.0" refused by server
 
Hello everybody,

I'm running Centos 5.5

Server and server gui is installed from scratch.
Java is installed (jdk-6u21-linux-i586)

I have a small problem.

I have a java software that is running a small gui for me to be able to se some statistics for the stuff that it is doing.

I need to be able to log on to the server via ssh and start my software but when I do that I only get the following:

xlib: connection to ":0.0" refused byserver
Xlib: No protocol specified
unable to open display ":0.0"

I tried to do export DISPLAY=:0.0
It doesn't help.

I tried to log in to gnome as root and run xhost +.
It doesn't help.

What to do?

Best regards

Johan

neonsignal 09-26-2010 05:49 PM

The '-X' flag on ssh allows the forwarding of X11 connections (assuming it is allowed in the /etc/ssh/sshd_config of the X host).


All times are GMT -5. The time now is 11:28 AM.