[Discuss] hosts.equiv
Bill Bogstad
bogstad at pobox.com
Fri Sep 14 12:35:10 EDT 2012
On Fri, Sep 14, 2012 at 12:02 PM, dan moylan <jdm at moylan.us> wrote:
>
>
> > When you run rsync, pass it "-e ssh -i /home/jdm/.ssh/rsync.key"
> > You should have a fairly safe passwordless rsync.
>
> rsync -e ssh -i /home/moylan/.ssh/rsync.key --archive --delete
> --compress /home/moylan/bac/ 192.168.0.103:bac
>
> still asked for a password. any idea what i might have
> missed (or done wrong)?
>
1. Try running ssh with "-v" option and have it tell you why it failed to
use other authentication methods.
REAL ANSWER*** 2. -e takes a single argument. I believe you have to
quote the whole thing i.e.
rsync -e "ssh -i ...." ....
Personally, I usually write a trivial shell script to encompass all of the
ssh arguments that I want and invoke it as:
rsync -e special-ssh-script-for-this-backup
Bill Bogstad
More information about the Discuss
mailing list