Re: scp works on command line, fails in cron
From: Frank_Hamersley (terabite_at_isat.bigpond.com)
Date: 12/29/04
- Previous message: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- In reply to: tonij67_at_hotmail.com: "scp works on command line, fails in cron"
- Next in thread: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- Reply: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 28 Dec 2004 23:49:12 GMT
<tonij67@hotmail.com> wrote
> 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
>
> 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
Can you pls post your crontab line (with suitable obfuscation of sensitive
bits)?
Also which shell are you using for your CLI?
Cheers, Frank.
- Previous message: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- In reply to: tonij67_at_hotmail.com: "scp works on command line, fails in cron"
- Next in thread: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- Reply: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|