ssh public key authentication
Luca Ferrari
fluca1978 at infinito.it
Thu Jan 8 08:07:44 UTC 2009
Thanks all,
I've double checked my configuration, and the server was accepting rsa
authentication, the key was right (I checked it with another user and it
worked) and the permissions of the .ssh directory were right (0600). Then I
had a look at the home directory of the user and I found that the group was
not right, so I changed and the ssh login worked. So it is important not only
the ownership and permissions of the .ssh directory, but of the whole home
directory.
Thanks,
Luca
On Wednesday 7 January 2009 17:41:18 Beau J. Bechdol wrote:
> If the server didn't let you in using your key, find the *
> PubkeyAuthentication* line in */etc/ssh/sshd_config* and change it to
> *yes*. That should do it.
>
> -Beau
>
> On Wed, Jan 7, 2009 at 9:10 AM, Luca Ferrari <fluca1978 at infinito.it> wrote:
> > Hi,
> > I'd like a user to ssh another host (both ubuntu 8.1) without being
> > prompted
> > for a password, so I copied the rsa (and also dsa) public keys to the
> > target
> > host, added these keys to the authorized_keys file but when I do ssh I'm
> > prompted for a password, and I don't understand why. Here's an excerpet
> > of the
> > debug messages of the ssh client:
> >
> > debug1: Next authentication method: publickey
> > debug1: Trying private key: /var/backups/.ssh/identity
> > debug3: no such identity: /var/backups/.ssh/identity
> > debug1: Offering public key: /var/backups/.ssh/id_rsa
> > debug3: send_pubkey_test
> > debug2: we sent a publickey packet, wait for reply
> > debug1: Authentications that can continue: publickey,password
> > debug1: Offering public key: /var/backups/.ssh/id_dsa
> > debug3: send_pubkey_test
> > debug2: we sent a publickey packet, wait for reply
> > debug1: Authentications that can continue: publickey,password
> > debug2: we did not send a packet, disable method
> > debug3: authmethod_lookup password
> > debug3: remaining preferred: ,password
> > debug3: authmethod_is_enabled password
> >
> >
> > anyone has an idea of what the problem could be?
> >
> > Thanks,
> > Luca
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list