Subject: Re: Problem with ssh commands from cron
To: Steven M. Bellovin <smb@research.att.com>
From: Byron Servies <bservies@pacang.com>
List: netbsd-users
Date: 11/24/2003 08:14:42
On Monday, November 24, 2003, at 07:09 AM, Steven M. Bellovin wrote:
> In message <20031124144219.GC27185@zhwin.ch>, Christoph Kaegi writes:
>> On 24.11-08:58, Steven M. Bellovin wrote:
>>>>
>>> Then I don't have any guesses. You might want to run an sshd on a
>>> different port with debugging on, and see what it says.
>>>
>>
>> When run by cron, sshd stops after the following:
>
> Hmmm... The next obvious step is to turn on client debugging, too.
Hi,
The O'Reilly SSH book recommends using ssh-agent in conjunction with
ssh in batch or cron jobs. They also recommend the options: ssh -q -o
'BatchMode yes'
Don't forget that if you use ssh-agent, you need to have the agent
information in the environment that runs the ssh command.
Byron