Subject: Re: Problem with ssh commands from cron
To: Christoph Kaegi <kgc@zhwin.ch>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 11/24/2003 07:41:54
In message <20031124120937.GA26071@zhwin.ch>, Christoph Kaegi writes:
>
>Dear list
>
>I'am restarting named on a remote system by connecting via 
>ssh and authenticating through a certain private key.
>The authorized_keys file on the remote host is setup as to 
>call '/etc/rc.d/named restart' every time this key authenticates.
>
>The call looks like this:
>
># ssh -n -t -i /root/.ssh/restartDNSid remotesystem
>
>This works, when called directly from the console. When
>called from cron, named gets restarted, but ssh never
>returns.
>
>Does anyone have a clue, what the problem could be?

Is there a passphrase on the private key?  

		--Steve Bellovin, http://www.research.att.com/~smb