Operating System - HP-UX
1821067 Members
2534 Online
109631 Solutions
New Discussion юеВ

X connection to x.x.x.x:10.0 broken (explicit kill or server shutdown)

 
SOLVED
Go to solution
lastgreatone
Regular Advisor

X connection to x.x.x.x:10.0 broken (explicit kill or server shutdown)

Can anyone explain the above to me. I tried to run SAM remotely and this message appeared. There was more to the message:
warning: X11 connection requests different authentication protocol: 'MIT-MAGIC-COOKIE-1' vs. ''.
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: X connection to x.x.x.x:10.0 broken (explicit kill or server shutdown)

Is it possible that your DISPLAY variable is not properly set up?
try the following:

# DISPLAY=yourhost:0.0 ; export DISPLAY
# sam

that is assuming that yourhost is running an X server.

good luck
nothing wrong with me that a few lines of code cannot fix!
boley janowski
Trusted Contributor

Re: X connection to x.x.x.x:10.0 broken (explicit kill or server shutdown)

do the stuff Kofi told you, but be sure to allow a session on the station your bringing it to:

xhosts +
xhosts +

without the you will allow anyone to send a display to you, but if your working on allot of servers its easier, your choice.

good luck
Alex Glennie
Honored Contributor
Solution

Re: X connection to x.x.x.x:10.0 broken (explicit kill or server shutdown)

The Xserver has no concept of a 'user' when a connection is made. With
the 'client authorization' protocol that CDE (Common Desktop Environment)
uses, a key known as the 'MIT-MAGIC-COOKIE' is extracted from
$HOME/.Xauthority and passed to the Xserver. If the key is valid, the
connection is established; otherwise, it is denied.
The 'xhost' list takes precedence over this 'xauth' key. Once a system
is added, no 'magic cookie' is needed. With each login, the new key is
merged into $HOME/.Xauthority and a utility (/usr/bin/X11/xauth) is
included. This utility allows you to manipulate the keys stored in thefile.
You could use an rexec command to extract the local key and merge it
into a .Xauthority file on a remote system, for example:
# /usr/bin/X11/xauth -q nextract - $DISPLAY | remsh server1 -l root /usr/bin/X11/xauth -q nmerge -
For additional information on 'xauth', see the 'xauth' man page. You
can also get information on a usage statement displayed by 'xauth -h'
from the 'xauth' man page.
lastgreatone
Regular Advisor

Re: X connection to x.x.x.x:10.0 broken (explicit kill or server shutdown)

Sounds to me like another administrator has tampered with the configuration of .Xauthority on that specific host. I had no problems before today. Thanks for the enlightenment