When using a Secure Shell client to connect to a Red Hat Enterprise Linux (RHEL) 5 host running Reflection for Secure IT UNIX Server version 7.1.x, users are unable to launch X client applications. Users receive no error, or an error such as "can't open display." This technical note explains how to potentially resolve this problem by editing the XauthPath parameter.
When Reflection for Secure IT UNIX Server is installed, an XauthPath entry is added to the /etc/ssh2/sshd2_config file. By default, this path is set to XauthPath=/usr/bin/X11/xauth. On RHEL 5, this path setting is typically incorrect.
To resolve this problem, determine the correct path for Xauth, then locate and edit the configuration file entry accordingly.
Use the following command to locate Xauth and determine the correct Xauth path.
Make a note of the path returned by this command. You will use it in step 4 of Edit the Configuration File.
XauthPath is configured in the SSH server configuration file. Typically, the configuration file is named sshd2_config, and is located in /etc/ssh2. If the file is not in this location, use the find command to search for the file:
find / -name sshd2_config
After you have located the SSH server configuration file, follow the steps below to configure the XauthPath keyword.
Sample entry: XauthPath=/usr/bin/xauth
Note: If the line is commented out (preceded by a # symbol), remove the #.
After the configuration file is modified, stop and restart the SSH daemon.
Follow these steps to stop and restart the daemon.
Make a note of the PID.
Note: Replace <PID number> with the Process ID number obtained in step 1.
The ssh daemon's PID should now be different than it was in step 1, and the updated XauthPath entry should be in use.
You should now be able to launch X client applications through secure shell. If you are still experiencing difficulties, see Technical Note 1814 for further SSH connection troubleshooting steps.