Subject: Bug#633526: vserver kernel breaks ssh public_key authentication on NFS
From: Ben Hutchings <ben@decadent.org.uk>
Date: Tue, 12 Jul 2011 04:27:55 +0100
Tue, 12 Jul 2011 04:27:55 +0100
Does anyone understand this problem or have an idea of how to
investigate it?

Ben.

-------- Forwarded Message --------
From: Harald Dunkel <harald.dunkel@aixigo.de>
Reply-to: Harald Dunkel <harald.dunkel@aixigo.de>, 633526@bugs.debian.org
To: submit@bugs.debian.org
Subject: Bug#633526: vserver kernel breaks ssh public key authentication on NFS
Date: Mon, 11 Jul 2011 09:19:24 +0200

Package: linux-image-2.6-vserver-amd64
Version: 2.6.32+29


If I use the vserver kernel on a remote host, then I
cannot login via ssh and public key authentication. AFAICS
the access rights to my authorized keys file get corrupted.

Before I try to login it shows on the remote host:

# ls -l /home/hdunkel/.ssh/authorized keys
-rw-------   1 hdunkel users   1406 Jun 15 14:34 authorized keys


When I try to login I am asked for a password (although
authorized keys is set correctly). After this attempt I
see on the remote host:

# ls -al /home/hdunkel/.ssh/authorized keys
-rw-------   1 4294967294 4294967294   1406 Jun 15 14:34 authorized keys

"sshd -d" shows that sshd doesn't like this.

Using the regular Squeeze kernel without vserver patch
there is no such problem.

/home is mounted via NFS:

# cat /proc/mounts | grep /home
nfs-home:/space/home /home nfs4 rw,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=172.19.96.103,minorversion=0,addr=172.19.96.215
0 0

The NFS server runs Squeeze, too.


Regards

Harri





["application/pgp-signature" not shown]