使用sron代理通过crontab执行rsync命令
我有一个cronjob: 0 9 * * * rsync -a mydir remote_machine: 我用'crontab -e'安装了这个。 我有一个ssh代理程序运行,当我执行rsync命令本身,它工作不W / o任何用户交互或密码input,但cronjob失败,出现以下消息: Date: Wed, 9 Dec 2009 11:11:00 -0600 (CST) From: Cron Daemon <me@my_machine.my_domain> To: me@my_machine.my_domain Subject: Cron <me@my_machine> rsync -a /home/me/mydir remote_machine: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,gssapi-with-mic,password). rsync: connection unexpectedly closed (0 bytes […]