[Wylug-help] rsync over ssh with cron

Anne Wilson cannewilson at tiscali.co.uk
Thu Mar 30 20:35:28 BST 2006


I can use a longish command to rsync directories across the lan, from a 
terminal, without the need to give a passphrase, so I tried to set up a cron 
job to do the same at regular intervals.  Up to then I had not understood 
that the cron job would be using a different session and therefore be unable 
to use the authentication link that ssh-add had created.

It seems that if I want to do this automatically I have to use ssh without 
passphrase, but that it is possible to exclude the use of the key from any 
other host.  The answer, I'm told, is in man:sshd.  Sadly, as so often 
happens, if you don't already know quite a bit about what is happening, it is 
very difficult to isolate the bit you require.

Could someone please point me at the bit I need?  An example of how to use it 
would be more than welcome :-)

Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://list.wylug.org.uk/pipermail/wylug-help/attachments/20060330/d776024c/attachment.bin


More information about the Wylug-help mailing list