T o n g wrote:
> How do you handle situations that you need to do rsync etc ssh related 
> tasks in cron? 

When running under cron you cannot use a passphrase on your ssh
private key.  Since no passphrase can be used you have to ask if you
are working in an NFS environment or not.  If under NFS then the only
safe user is the root user since root is converted to nobody due to
root_squash behavior.  In which case all cron activity would need to
be under root's account.  If not in an NFS environment then you can
safely use filesystem permissions to protect your key.  Create a key
without a passphrase and use it for use in cron.

> I know it need my passphrase before hand, but what if (somehow) the 
> machine is rebooted and I haven't get around keying the passphrase yet?

That is exactly why going that path can't work.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to