Your message dated Mon, 26 Apr 2010 19:41:23 +0200
with message-id <[email protected]>
and subject line Re: rsync from crontab fails
has caused the Debian Bug report #395949,
regarding rsync from crontab fails
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
395949: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=395949
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cron
Version: 3.0pl1-99
Severity: normal


Hello,

I have an rsync command in my user's crontab file, however it does not 
work. :-(

I get the following error:

---
Permission denied (publickey,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(463) [sender=2.6.8]
---

When I run the command manually (copy and paste from the crontab file) it 
works fine.


HTH,

.George.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.2006081401
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cron depends on:
ii  adduser                      3.99        Add and remove users and groups
ii  debianutils                  2.17.3      Miscellaneous utilities specific t
ii  libc6                        2.3.6.ds1-6 GNU C Library: Shared libraries
ii  libpam0g                     0.79-3.2    Pluggable Authentication Modules l
ii  libselinux1                  1.32-2      SELinux shared libraries
ii  lsb-base                     3.1-17      Linux Standard Base 3.1 init scrip

Versions of packages cron recommends:
ii  exim4                         4.63-7     metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.63-7     lightweight exim MTA (v4) daemon

-- no debconf information



--- End Message ---
--- Begin Message ---
Hello George,

George B. wrote:
> I have an rsync command in my user's crontab file, however it does not 
> work. :-(
> 
> I get the following error:
> 
> ---
> Permission denied (publickey,keyboard-interactive).
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: unexplained error (code 255) at io.c(463) [sender=2.6.8]
> ---
> 
> When I run the command manually (copy and paste from the crontab file) it 
> works fine.

This isn't a bug in cron. The error message you are seeing is from a
remote SSH server, indicating that authentication failed (neither an SSH
key nor a password were supplied). Running the copy-paste from the
command line probably works because an agent (ssh-agent, gnome-keyring,
...) is running in the background.

If you want cron to run rsync+ssh jobs for you, you'll need an
unencrypted key. I'd strongly recommend locking this key down (see the
section AUTHORIZED_KEYS FILE FORMAT in sshd(8), particularly the
command="" option).


Regards,
Christian

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to