On Wed, 30 Aug 2000, Bastian Trompetter wrote:
>Hello,
>
>I've installed OpenSSH2.1.1p4 on a Suse Linux 6.2 Machine. It runs very good. If I
>login in with an ssh2 client with activated X11 forwarding, and than start a x11 tool
>like xterm, I get sometimes the error:
>
>X connection to lx340001:10.0 broken (explicit kill or server shutdown)
>
>And somtimes it works. Did anybody get the same problem? Under SCO I have no problems
>with X11 forwarding.
>
>I want to login to the linux box as a normal user and then do a su, how must I
>configure the login profile for the bash that the x11 forwarding did work?
When you're sshed in, check the XAUTHORITY variable. It should be something
like /tmp/ssh-efPeK778/cookies . /etc/profile.d/xhost.sh should be something
like this:
# Export Xauthority for users not for root.
if [ ! -z "$DISPLAY" ];then
if [ "`id -u`" -gt 14 ];then
if [ -z "${XAUTHORITY}" ]; then
XAUTHORITY="${HOME}/.Xauthority"
export XAUTHORITY
fi
fi
fi
How to make X work when you ssh in as a normal user and then su, I don't know.
phma