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

Wolfgang S. Rupprecht wolfgang.rupprecht at gmail.com
Sun Jun 13 14:58:44 UTC 2010


sean darcy <seandarcy2 at gmail.com> writes:
> On 06/12/2010 09:34 AM, Wolfgang S. Rupprecht wrote:
>>
>> Craig White<craigwhite at azapple.com>  writes:
>>> sounds like you created the file elsewhere (or even on another computer)
>>> and moved it into place thereby creating SELinux issue.
>>
>> That would be my guess too, seeing how it happens to me regularly when I
>> do clean installs and then try to copy the customized files from an NFS
>> server.  It is a real pain in the neck that a cp(1) from an NFS-ed
>> fileystem doesn't preserve the selinux bits.
>>
>> -wolfgang
>
> I did copy id_rsa.pub to the new machine. Then cat id_rsa.pub >> 
> authorized_keys
>
> Is there another/better way to do it?

In the past I just copied as normal and then ran "restorecon -v
<filename>" to set the selinux context.  Just recently I've been trying
to just sync the important files across my machines via "rsync -axHAX
<filename_or_dirname>".  I norrmally try to have only one
authorized_keys file per user account that I distribute to all machines.
It makes life much simpler that way.

-wolfgang


More information about the users mailing list