I found this very useful for getting around this problem with osX
bombich.com/mactips/rsync.html
-Jason
-----Original Message-----
From: Andrzej Filip [mailto:anfi@priv.onet.pl]
Sent: Tuesday, March 23, 2004 7:46 AM
To: rsync@lists.samba.org
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@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@priv.onet.pl anfi@xl.wp.pl
anfi.homeunix.net slashdot.org/~anfi
--
To unsubscribe or change options: lists.samba.org/mailman/listinfo/rsync
Before posting, read: catb.org/~esr/faqs/smart-questions.html
*********************************************************************************
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.
***********************************************************************************