only root without password

Iain Morgan imorgan at nas.nasa.gov
Sat Dec 20 03:58:34 EST 2008


On Fri, Dec 19, 2008 at 02:12:38 +0000, Fede Rico wrote:
> Hi all,
> I have a very strange problem with the public key authentication with 2
> machines.
> I generated the key, configured the authorized_keys etc.. etc.. This is
> all ok, now:
> The ssh works without the password for the "root" user, any other user
> cannot use the key and ssh ask me for the password !!
> I cannot understand why only the root is able to connect without the
> password. So, the ssh works and I think there is a wrong config file but I
> cannt find it !!!!
> Just to understand the issue, let's see the strace of sshd daemon. As you
> can see when the root connect the sshd reads the key file, but when
> another user try to connect, sshd open the file and the close it without
> read the key......
> Any ideas??
> 
> Federico
> 

For debugging purposes, it's usually more useful to use the output of
ssh-v (or sshd -d) rather than strace.

Check teh output of ssh -v for both cases and confirm that the client is
offering a public key in both cases.

-- 
Iain Morgan


More information about the openssh-unix-dev mailing list