rsync via ssh script

Andrzej Filip anfi at priv.onet.pl
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 192.168.10.102:/home/johndoe/junk
> 
> 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 priv.onet.pl anfi at xl.wp.pl
http://anfi.homeunix.net/ http://slashdot.org/~anfi


More information about the rsync mailing list