ssh batch troubles
Howard Lowndes
lannet at lannet.com.au
Thu Dec 12 06:31:21 EST 2002
On Thu, 12 Dec 2002, Paul Bryan wrote:
> On Wed, 11 Dec 2002 20:37, Howard Lowndes wrote:
> > I am having problems running ssh in a batch job, specifically a cron
> > script. I am trying to pass a command to another box using ssh.
> >
> > I have tried the -n and -o "BatchMode yes" options to ssh but the job
> > hangs just before it is due to close.
> >
> > Running the script from the command line works OK.
> >
> > Any clues?
>
> When you run it from the command line, is it prompting for a password? I know
> this sounds obvious, but I've been caught out like this before. I just typed
> the password automatically when running from the command line and then
> wondered why the cron job didn't work!
>
> Sometimes, the answer is so obvious that you just don't see it...
Unfortunately not. It uses password-less keys.
--
Howard.
LANNet Computing Associates - Your Linux people
Contact detail at http://www.lannetlinux.com
"Flatter government, not fatter government." - me
Get rid of the Australian states.
------------------------------------------
If electricity comes from electrons, does morality come from morons?
More information about the linux
mailing list