SSH / permissions problem

birger birger at
Wed Jul 14 07:32:09 UTC 2010

On Tue, 2010-07-13 at 16:49 +0100, Gary Stainburn wrote:

> [gary at dcomp5 ~]$ ssh -Y -C lcomp3
> gary at lcomp3's password: 
> Last login: Tue Jul 13 15:55:16 2010 from
> /usr/bin/xauth:  timeout in locking authority file /home/gary/.Xauthority
> [gary at lcomp3 ~]$ kcalc
> X11 connection rejected because of wrong authentication.
> kcalc: cannot connect to X server localhost:11.0
> [gary at lcomp3 ~]$ 

Usually, the problem is that xauth isn't installed. Here, you seem to
have xauth, but xauth is unable to lock the ~/.Xauthority file. I would
try removing that file and retrying. Removing it could affect existing X
sessions on that host, but being a virtual system I assume you are not
logged in on the console. The next ssh should then recreate the file
with only a cookie for the ssh session.


More information about the users mailing list