I believe that I have a workaround.
The problem appears to be related to an NFS problem on the 2.6.24 kernel
when ssh calls xauth.
Upgrading the kernel may help.
If you can't upgrade then the trick is to use a different .Xauthority
file on each server.
That can be done from the client side as follow:
First of all, add something like that in your bashrc file.
if [ -n "$SSH_CLIENT" ] ; then
Unfortunately, ssh calls xauth before setting the user environment so I
use the following ~/.ssh/rc file:
if [ -n "$DISPLAY" ] ; then
if read proto cookie ; then
case $DISPLAY in
localhost:*) xauth -f $HOME/.Xauthority-$HOSTNAME add unix:$(echo $DISPLAY | cut -c11-) $proto $cookie ;;
*) xauth -f $HOME/.Xauthority-$HOSTNAME add $DISPLAY $proto $cookie ;;