On Sat, 3 Aug 2002, Chris Mason wrote: > /usr/bin/rsync -arvz -e ssh [EMAIL PROTECTED]:/home/files/* > /backup_disk/servername/ > > The output from the cron job is: > Permission denied, please try again. > Permission denied, please try again. > Permission denied (publickey,password,keyboard-interactive). > rsync: connection unexpectedly closed (0 bytes read so far) rsync error: > error in rsync protocol data stream (code 12) at io.c(150) > > When I run the script from the command line as root it works. From cron > it doesn't. The ssh keys are exchanged and no passphrase is required. > I don't know what to do now.
I'd guess it's because you're crontab script doesn't know about the the the no-passphrase key you generated and the shell you use to test it, does. You might need to use shosts to accomplish this task. Just a guess on my part. If I'm wrong, somebody should pipe up. -- redhat-list mailing list Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list