Problems with rsync over ssh

Christopher K. Johnson ckjohnson at gwi.net
Thu Mar 30 13:16:34 UTC 2006


Anne Wilson wrote:

>I have an rsync command that works perfectly from a user terminal, using my 
>key.  I saved the command to a file and made it executable, then attempted to 
>run it as a cron job.  This fails with the follosing errors:
>
>Permission denied, please try again.
>Permission denied, please try again.
>Permission denied (publickey,gssapi-with-mic,password).
>rsync: connection unexpectedly closed (0 bytes received so far) [sender]
>rsync error: error in rsync protocol data stream (code 12) at io.c(420)
>
>Googling hasn't helped.  I can find several references to it, but the only one 
>that seemed useful concerned permissions settings.  Since it ran manually, 
>this didn't seem relevant, but I've made sure that they are correct according 
>to that thread anyway.
>
>Can anyone give me a pointer, please?
>
>Anne
>  
>
What user does the cron job run as?
ssh key and default remote user are taken from the user running the script.
Also there may be another issue.  Have you tried running the script 
manually, and did it prompt for a key passphrase?

Chris

-- 
   "Spend less!  Do more!  Go Open Source..." -- Dirigo.net
   Chris Johnson, RHCE #804005699817957




More information about the fedora-list mailing list