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: PASSWORDWhen 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 yesTo:X11UseLocalhost noThen 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.0You would want to set your DISPLAY variable to:
testbox.fulldomain.name:10.0from the traditional DISPLAY=localhost:0.0 export DISPLAYand 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