Re: Problems with rsync over ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux