On Wednesday 15 February 2006 05:51, [EMAIL PROTECTED] wrote: > I was using like: > rsync -avze [EMAIL PROTECTED]:/home /home > to backup the server, after disabling root's ssh, I tried: > rsync -avze [EMAIL PROTECTED]:/home /home > however, that fails as 'myself' has insufficient permissions; > > what the best way to handle this ?
For me the best solution was: ---- /etc/ssh/sshd_config .. PermitRootLogin without-password .. Then make sure the host you're going to (in this case yourself) has the public key stored in authorized_keys. Also I don't backup to myself, but it's the same. I did not bother to RFM but ... do you not need to specify (ssh whatever) with -e? #! /bin/sh # rsync -av -e ssh --delete /etc/ reggit:/tigger/etc rsync -av -e ssh --delete /var/ reggit:/tigger/var ... James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
