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 r...@oligoextra.phyto.qc.ca > > > > I would believe you must: > > ssh-copy-id -i id_dsa.pub backu...@oligoextra.phyto.qc.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 "r...@oligoextra.phyto.qc.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 r...@oligoextra.phyto.qc.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 r...@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. -- Claude Gélinas agr. Phyto Ressources inc. ------------------------------------------------------------------------------ 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@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/