RE:

From: Welsh, Armand <Armand.Welsh_at_**********.***>
Date: Tue Sep 20 2005 - 09:23:59 EDT

Check to make sure your "scheduled task" is running as a user with read
access to the private key. Also, if the private key is password
protected, you will some way to setting the password. If you are using
an SSH-Agent to deal with authentication, then the agent will not be
able to talk to the SSH-Client unless you put the two of them in a
single batch file, because each instance of a scheduled task is
segmented from other scheduled tasks (separate user sessions), so the
agent can only talk to the client if they are in the same user session.

Another thing, if you manually start the scheduled task it doesn't run
exactly as it would if it were started automatically by the OS, because
when you manually start a scheduled task, the scheduled task is able to
interact with the current user session, but if it starts automatically,
then it does not interact with the user session, so if it runs manually,
but not automatically, test it by changed the scheduled task's start
time to just a minute or two from the current time, then wait for it to
start on its own.

Hope this helps to trouble shoot the problem. It's pretty basic stuff,
but sometimes people aren't aware of these issues. If you have any more
up to date information, maybe I can help more.

Regards,
Armand

P.S. Make sure the scheduled task's command line specifies the user to
SSH as with "-l remote_user" or "user@host.com" notations.

-----Original Message-----
From: ssh@erdelynet.com [mailto:ssh@erdelynet.com] On Behalf Of Michael
Hathaway
Sent: Tuesday, September 20, 2005 3:39 AM
To: ssh@erdelynet.com
Subject:

Hi,

I have installed OpenSSH 4.1 p1 on W2K3 Enterprise
edition and am having problems scripting sftp using
key based authentication. I have sftp and ssh working
using keys if I sftp, ssh or run my batch script
manualy but when I use the windows task scheduler I
the script crashes with "Host Key Authentication
Failure".

Any ideas??

Thanks

                
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

--
List Archives:   http://erdelynet.com/archive/ssh-l/
To Unsubscribe:  Mail mailto:ssh+unsubscribe@erdelynet.com
--
List Archives:   http://erdelynet.com/archive/ssh-l/
To Unsubscribe:  Mail mailto:ssh+unsubscribe@erdelynet.com
Received on Tue Sep 20 09:24:31 2005

This archive was generated by hypermail 2.1.8 : Tue Sep 20 2005 - 09:24:32 EDT