rsync via ssh script

Andrzej Filip anfi at
Tue Mar 23 07:46:27 GMT 2004

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

More information about the rsync mailing list