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 [EMAIL PROTECTED]:/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 [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to