rsync via ssh script

Jason Ferguson Jason.Ferguson at
Tue Mar 23 08:08:11 GMT 2004

I found this very useful for getting around this problem with osX


-----Original Message-----
From: Andrzej Filip [mailto:anfi at]
Sent: Tuesday, March 23, 2004 7:46 AM
To: rsync at
Subject: Re: rsync via ssh script

Tim Nonnast wrote:
> does anybody know, how a bash shell script looks, which automatically 
> enters the ssh password?
> the rsync call should be:
> rsync -avz -e ssh /home/johndoe/data/repository 
> billythegate at
> the call causes a password question.
> Is ist possible to automate that by a cron? If yes how should the script > look to automatically enter the password?

Have you considered using "key authentication" in ssh ?

AFAIK it is a standard way of making ssh session available to cron scripts. The remote site may assign "single command" to session suthenticated with the 
the key.

Andrzej [en:Andrew] Adam Filip anfi at anfi at
To unsubscribe or change options:
Before posting, read:

This e-mail message, including any attachments, is intended solely for the use of the addressee and may contain confidential information. 
If it is not intended for you, please inform the sender and delete the e-mail and any attachments immediately. Any review, retransmission, 
disclosure, copying or modification of it is strictly forbidden.  Please be advised that the views and opinions expressed in this e-mail may not reflect the views and opinions of Newsquest (Herald & Times) Limited or any of its subsidiary companies.  

Whilst we take reasonable precautions to ensure that our emails are 
free from viruses, we cannot be responsible for any viruses transmitted with this e-mail and recommend that you subject any incoming e-mail to your own virus checking procedures.  Use of this or any other e-mail facility signifies consent to any interception we might lawfully carry out to prevent abuse of these facilities.

More information about the rsync mailing list