F13 new install: can't get ssh pubkey to work

Chris Kloiber ckloiber at ckloiber.com
Sun Jun 13 05:51:40 UTC 2010


IIRC, you might be having an SELINUX issue. Check to see if SELINUX does 
not like the labeling on the ~/.ssh/authorized_keys2 file.

-- 
Chris Kloiber


On 06/13/2010 01:06 AM, Ed Greshko wrote:
> On 06/12/2010 09:33 AM, sean darcy wrote:
>> New install of F13.
>>
>> drwx------.  2 root root  4096 Jun 11 20:22 .ssh
>>
>> ls -l /root/.ssh
>> total 12
>> -rw-------. 1 root root 1006 Jun 11 20:23 authorized_keys
>>
>>
>> The rsa key is in authorized_keys.
>>
>> But when I try to login into root:
>>
>> Jun 11 21:12:39 new-gateway sshd[1786]: debug1: temporarily_use_uid: 0/0
>> (e=0/0)
>> Jun 11 21:12:39 new-gateway sshd[1786]: debug1: trying public key file
>> /root/.ssh/authorized_keys
>> Jun 11 21:12:39 new-gateway sshd[1786]: debug1: Could not open keyfile
>> '/root/.ssh/authorized_keys': Permission denied
>>
>>
>> /root/.ssh is 700, authorized_keys is 600. I've restarted sshd. I've
>> rebooted.
>>
>> So what's my problem.
>>
>>
> FWIW, here is the process I just performed and had no problems.
>
> 1.  Login as root to the F13 system.
> 2.  Run ssh-keygen
> 3.  Since I wanted my user key to allow for root access and since I'd
> already set that up I simply did "cat
> /home/egreshko/.ssh/authorized_keys>  authorized_keys ; chmod 600
> authorized_keys" in /root/.ssh
>
> All works fine....
>
>
>
>
>
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6223 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100613/1d20c077/attachment.bin 


More information about the users mailing list