Re: scp works on command line, fails in cron

From: Chuck (skilover_nospam_at_softhome.net)
Date: 12/28/04


Date: Tue, 28 Dec 2004 11:29:33 -0500


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tonij67@hotmail.com wrote:
| Hi all,
|
| I am a bit baffled here. I have set up public/private key
| authentication many times and have not had the sort of problem I am
| having now.
|
| I am testing a script that will be the framework for more complicated
| tasks and the first test I want to run is a simple scp from one server
| to another. I am starting very simple, no passphrase (yet) and am
| already running into a wall. When I run this command:
|
| /usr/local/bin/scp /tmp/2 10.46.0.102:/utils/backup
|
| It copies the file /tmp/2 to /utils/backup on 10.46.0.102 with no
| issue. When I try to do the same thing from cron, I get an email from
| cron with this:
|
| Permission denied, please try again.
| Permission denied, please try again.
| Permission denied (publickey,password,keyboard-interactive).
| lost connection
|
| Any ideas why authentication works fine from the command line, but
| gives the above error in cron?
|

Are you using a ssh-agent, or an encrypted private key?
- --
To reply by email remove "_nospam"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB0YntzIf+rZpn0oQRApdPAJ4jDOlG2xe4veeDuFwx9nAHD3BRDgCgnE71
nw5rZVceHkPJd25focwSOJQ=
=5MqA
-----END PGP SIGNATURE-----



Relevant Pages

  • Re: Sendmail Problem
    ... Gentoo Linux system. ... sendmail process failed with error code 69 ... Because I want port 587 to require authentication and cron worked fine. ...
    (Debian-User)
  • Re: authentication method shell variable?
    ... for authentication. ... that members of the admin group can only log in using public/private key ...
    (SSH)
  • scp works on command line, fails in cron
    ... authentication many times and have not had the sort of problem I am ... When I run this command: ... When I try to do the same thing from cron, ...
    (comp.security.ssh)
  • Re: Royalty free crypto library?
    ... > public/private key based authentication. ... I am neither math, nor crypto ...
    (sci.crypt)
  • Re: How good is Windows RDPs encryption?
    ... > With that said...personally I run RD through a SSH tunnel and use a ... > public/private key with a strong passphrase verus password ... > authentication. ...
    (comp.security.ssh)