Re: ssh with RSA-key login problem
On Tue, Aug 03, 1999 at 02:38:19AM +0200, Fredrik Jonsson wrote:
> debian-user-digest-request@lists.debian.org
> <debian-user-digest-request@lists.debian.org> 99-08-03 01.39 wrote:
>
> >Fredrik> ssh client complains that "Server does not allow RSA
> >Fredrik> authentication, or the public key for user "user1" was not
> >Fredrik> accepted. Reverting to password authentication.
> >
> >ssh has a verbose switch. Use it and see why it rejects the RSA key.
>
> Hi,
>
> I found it and it say:
>
> debian: Trying RSA authentication with key 'user1@debian'
> debian: Remote: Bad file modes for /home/user1
> debian: Server refused our key.
>
> How do you fix "Bad file modes"?
>
I think that sshd needs:
chmod -R og-rxw ~/.ssh
chmod og-w ~
Mirek
Reply to: