Re: scp works on command line, fails in cron

tonij67_at_hotmail.com
Date: 12/28/04


Date: 28 Dec 2004 14:31:25 -0800


> 1) Is the cron script connecting to the same server? If not, the
server
> it's connecting to probably doesn't have the public key in the
> authorized_keys file

Yes. In fact, if I do

crontab -l

...and cut and paste the command from the output, the copy works fine.
It *only* fails when run from cron.

> 2) Is the cron script using the same identity file? (i.e are you
using
> the -i option and if so is the file name the same)

See above. Running the script from the command line works, when cron
runs it, it fails.

This is the wierdest authentication problem I have ever seen.

>
> - --
> To reply by email remove "_nospam"
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFB0dfAzIf+rZpn0oQRAgQmAKCde2bzizDpyY6B7XJOnwuQgIAJZgCdHohw
> YCFOKsD0hFlFviOel1eV/5I=
> =/KUG
> -----END PGP SIGNATURE-----



Relevant Pages

  • Re: scp works on command line, fails in cron
    ... scp works on command line, fails in cron ... 1) the list of keys it decides to try is different, ...
    (comp.security.ssh)
  • Re: [opensuse] No GUI 10.3 new install
    ... xorg.conf with this command (if you have nano installed otherwise ... of first boot startup the display flashes 3 times with about 5 sec ... need to restart after correction is done. ... start its own gui which also fails. ...
    (SuSE)
  • Re: [opensuse] No GUI 10.3 new install
    ... xorg.conf with this command (if you have nano installed otherwise ... of first boot startup the display flashes 3 times with about 5 sec ... need to restart after correction is done. ... start its own gui which also fails. ...
    (SuSE)
  • Re: Cron Job
    ... If you mean the computer itself, put that command ... The standard 'cron' runs jobs at a specific time/date. ... Init or @reboot run jobs when ... Sunday night at 02:00) then copy the script and cron entry. ...
    (comp.os.linux.misc)
  • Re: Cygwin problem with cron and networked drives
    ... command line it is recognized. ... Is the cron job running on a linux system or an MS Windows system? ... versus the user running the cron job. ...
    (comp.os.linux.networking)