« Return to Thread: SSH login thru public keys

Re: SSH login thru public keys

by Dirk H. Schulz-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread



--On 2. Mai 2007 21:21:57 -0500 Barry Brimer <securityfocus@...>
wrote:

>> scp .ssh/id_rsa.pub user@hostname:.ssh/authorized_keys
>>
>> changed the permissions on authorized_keys
>> chmod 600
>
> What are the permissions on ~/.ssh ??  IIRC, the correct permissions are
> 700.  If your permissions are not correct sshd will not accept pubkey
> authentication.

You can run sshd with LOGLEVEL DEBUG, then it will tell you if permissions
are a problem.

Regards,

Dirk

 « Return to Thread: SSH login thru public keys