source : debian-user-digest # 1520.
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.
This work by maniac.vardhan is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
0 comments :: how to handle situations that you need to do rsync etc ssh relatedtasks in cron
Post a Comment