Re: Problems with rsync over ssh

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

 



On Thu, 2006-03-30 at 06:58, 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?

If your ssh key has a passphrase, the only reason it works
manually is that you have entered that passphrase
previously and ssh-agent remembers it for you within
that session.  The cron job has no connection to that
session and the agent wouldn't provide the passphrase
even if it could.   If you want it to run without entering
the passphrase, make keys with an empty passphrase.

-- 
  Les Mikesell
   lesmikesell@xxxxxxxxx



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

  Powered by Linux