[Techtalk] rsync with ssh using cron

Malcolm Tredinnick malcolm at commsecure.com.au
Wed Jun 19 14:35:28 EST 2002


On Wed, Jun 19, 2002 at 12:20:29AM -0400, Michelle Murrain wrote:
> I'm trying to get rsync to work with cron. The one tip I found, upon
> googling, at: http://www.scrounge.org/linux/rsync.html
> 
> looks good, but doesn't work. (Basically, this method is to create a new
> key, and place it in a file in the ~/.ssh directory of both machines, to
> get a ssh without password prompt.) Didn't work.I'm not clear why it
> didn't work - but I still got a password prompt.

If you followed that page precisely but you are using the version 2
protocol of ssh, then the key you generated needs to go into
.authorized_keys2 (not .authorized_keys).

Also, try testing things by just doing ssh -v <target_machine> as the
appropriate user to see if things work (add more -v's to get more
debugging). Otherwise you will be debugging ssh and rsync problems
together, rather than just one at a time.

If all of those things work, we might be able to think up more things,
but, typically, once you have the passphrase-less ssh login working,
rsync via cron Just Works(tm).

Cheers,
Malcolm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://linuxchix.org/pipermail/techtalk/attachments/20020619/2bf9366f/attachment.pgp


More information about the Techtalk mailing list