Hi

Bjorn is correct - the task scheduler runs as 'system' by default,
when you create the task you can enter a user name and password (e.g.
yours) for the task to run as , this may well solve your issue with
key access and use.  I have not used the Unicenter scheduler, but as
this feature is natively available in the Windows task scheduler I
would be very surprised if it wasn't available in a third party
product..

cheers

Kevin

--------- Forwarded message ----------
From: Björn Bergstrand <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Fri, 19 Jan 2007 18:18:09 +0100
Subject: Re: Openssh in batch from Windows with public key
Might be shooting in the dark here, since i have no experience with
windows schedulers
but the scheduler might run as another user, and ssh demands that your
key is only readable by the user.
A quick fix might be to change ownership of the key to someone who's
not using it at all (like nobody on a unix system) and change the
permissions on the file to something like 444. Not a recommended
practice though :)

Björn

On 19 Jan 2007 10:55:29 -0000
[EMAIL PROTECTED] wrote:

Hello, I have a problem with a openssh client running on a Windows 2003 server; 
the client has to connect to a ssh server running on a Linux Red Hat Enterprise 
4, using public key authentication.
I've run through all the required steps, and everything works fine when I connect 
interactively (logon to the Windows 2003 server, and running this line from a dos prompt 
to execute a command on the remote server : "ssh [EMAIL PROTECTED] command".
The problem arises when I want to do the same thing through a batch run by a 
scheduler; I'm using a Unicenter scheduler, but the problem is the same if I 
use Windows task scheduler. The batch job hangs, and I cannot obtain any kind 
of log; in my opinion, it cannot find the public key of the user. I tried with 
the -i option, but no result; anyone can help me ?
Thanks     Bruno

Reply via email to