Technical article 126290

When trying to run scoterm or other older X applications remotely from an OpenServer6 machine, I am getting an error.

OpenServer 6.0.0

Written · Last revised

Problem

I am trying to launch the scoterm application from a remote machine using ssh and a tunneled X session.

I am getting an error that looks like this:

X11 connection rejected because of wrong authentication. X connection to localhost:11.0 broken (explicit kill or server shutdown).

Here is what the error looks like in the proper context:

jimbo@tester:~> ssh -X jimbo@192.168.1.2 /usr/bin/X11/scoterm jimbo@192.168.1.2's password: PASSWORD X11 connection rejected because of wrong authentication. X connection to localhost:11.0 broken (explicit kill or server shutdown).

Other X applications seem to work just fine as demonstrated below:

jimbo@tester:~> ssh -X jimbo@192.168.1.2
/usr/bin/X11/xterm
jimbo@192.168.1.2's password: PASSWORD

When running xterm the problem is not seen.

Cause

The problem is caused by some older X applications not using the correct authentication method with the new X server provided with OpenServer6

Solution

This has been reported to SCO Engineering and is scheduled to be fixed at a future date.

As a workaround to this problem you can edit the sshd_config file on your OpenServer6 machine you are trying to display from. In your favorite text editor open /etc/ssh/sshd_config and change

#X11UseLocalhost yes
To:
X11UseLocalhost no

Then you must have sshd reread its configuration file by killing the sshd process with a -1.

You must also set the DISPLAY variable to the Fully Qualified host name of your OpenServer6 machine. So if you login to the machine and echo $DISPLAY it might return something like:

testbox:10.0

You would want to set your DISPLAY variable to:

testbox.fulldomain.name:10.0
from the traditional DISPLAY=localhost:0.0 export DISPLAY

and then export it. At this point you should be able to run your legacy X applications with no further problems. Be aware you still need to do an xhost + on the machine you are coming FROM so that you get the proper authentications on that box.

Using the example above this would mean doing:

xhost + 192.168.1.2

From the Xinuos technical article database, record 126290. Reproduced with permission. The original is at www.sco.com/ta/126290, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.