rsync without password

Wayne Davison wayned at
Mon May 29 15:33:06 GMT 2006

On Mon, May 29, 2006 at 11:57:54AM +0200, sinidr at wrote:
> [rsync11 at asterisk11]$ ssh -l rsync12
> is always asked the password....and the same for

Is ssh asking for the pass-phrase to unlock your private key?  If so,
you need to use an ssh-agent to unlock the key for more than one ssh
command.  See also the "keychain" project for one way to manage an
ssh-agent (which also allows a user's ssh-using cron jobs to run).
(You could alternately remove the pass-phrase from your private key,
but using "keychain" should be safer than that.)

If the prompt was actually for your password, then you need to configure
ssh to allow PubkeyAuthentication (RSAAuthentication for protocol v1)
and ensure that the AuthorizedKeysFile is what you're expecting.  For
instance, some setups have used .ssh/authorized_keys2 for protocol v2
connections (probably not a modern open-ssh setup, though).

Another alternative you may (or may not) wish to consider is using
HostbasedAuthentication (RhostsRSAAuthentication for protocol v1)
instead of public-key authentication via ssh-agent.


More information about the rsync mailing list