Re: [BackupPC-users] ssh don't work to backup localhost
2009-12-23 21:02:37
Claude Gélinas wrote:
> Le mercredi 23 décembre 2009 15:20:38, Chris Robertson a écrit :
>> Matthias Meyer wrote:
>>> Claude Gélinas wrote:
>>>> I'm trying to setup the backup of the localhost with backuppc. I already
>>>> backup several other linux machine via ssh. I've setuped all them via
>>>> running the following command as backuppc user:
>>>>
>>>> ssh-keygen -t dsa
>>>> cd .ssh
>>>> ssh-copy-id -i id_dsa.pub root AT oligoextra.phyto.qc DOT ca
>>> I would believe you must:
>>> ssh-copy-id -i id_dsa.pub backuppc AT oligoextra.phyto.qc DOT ca
>>> because you need the publich key in
>>> /var/lib/backuppc/.ssh/authorized_keys and not in
>>> /root/.ssh/authorized_keys
>> If he is trying to log in as root (and by the command "ssh -l root -vv
>> oligoextra", he is) the public key would need to be in
>> /root/.ssh/authorized_keys. My concern is the ssh-copy-id was run
>> against "root AT oligoextra.phyto.qc DOT ca", but the ssh attempt is being
>> run
>> against "oligoextra". Why the two host names?
>>
>>> cat id_dsa.pub >> /var/lib/backuppc/.ssh/authorized_keys
>>> should also do the job.
>>>
>>> br
>>> Matthias
> so I removed the /root/.ssh/authorized_keys
> did ssh-copy-id -i id_rsa.pub root AT oligoextra.phyto.qc DOT ca
> then ssh -l root oligoextra.phyto.qc.ca
>
> still asking for password.
>
> redo it :
> removed the /root/.ssh/authorized_keys
> ssh-copy-id -i id_rsa.pub root@oligoextra
> ssh -l root oligoextra
>
> still the same, need password. I even try with localhost instead of
> oligoextra... same thing, need password
>
> I've done it for 5 other linux machine and it work perfectly. no password
> needed.
>
> is there something special for the localhost as compare to other networked
> machine.
No, it should be the same. Look in the root/.ssh/authorized_keys file to see
if
the ssh-copy-id command put the right thing there. And make sure the file and
directories above have the right owner/permissions. I've seen some versions
that want to use a file named authorized_keys2 instead but I'm not sure exactly
why.
--
Les Mikesell
lesmikesell AT gmail DOT com
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|