Re: rsyncing via cron
on Sat, 08 Feb 2003 01:01:48PM -0500, sean finney insinuated:
> On Sat, Feb 08, 2003 at 12:31:00PM -0500, Nori Heikkinen wrote:
> > how can i create a cron job to rsync to a remote system? i use
> > ssh-askpass, but since cron runs as root, i get
>
[...]
> if you're trying to use public key authentication, what you need is
> a passphraseless key (which i'm guessing you may already have) just
> for the job, called say .ssh/id_dsa_cron and .ssh/id_dsa_cron.pub.
> after you put the public key in your authorized keys file, you're
> basically set. all you need to do is
>
> export RSYNC_RSH="ssh -i .ssh/id_dsa_cron" rsync ....
>
> or
>
> rsync -e "ssh -i .ssh/id_dsa_cron" ....
>
> and then the ssh session spawned by rsync should attempt to
> authenticate with your key.
awesome. i knew there was something i just hadn't thought through ...
thanks!
</nori>
--
.~. nori @ sccs.swarthmore.edu
/V\ http://www.sccs.swarthmore.edu/~nori/jnl/
// \\ @ maenad.net
/( )\ www.maenad.net
^`~'^
Reply to: