Thanks,
There is no /etc/ssh_config on the client.
The scheduled task is being run as the user that I log
on and run the task with.
Using the cygwin directory results in "Permission
denied."
Any More Ideas.....
--- "Welsh, Armand" <Armand.Welsh@sscims.com> wrote:
> What does your /etc/ssh_config file on the client
> machine look like? Is
> the Scheduled task running as the SAME user as the
> one you use when
> running the batch file manually? Also, this should
> not change anything,
> but what happens if you use the Cygwin directory
> names like this:
>
> sftp -o
> IdentityFile=/cygdrive/c/Docume~1/User/.ssh/user.key
> -b
> /cygdrive/c/batch/copyfile.txt user@test
>
> I wouldn't expect it to affect the results since
> Cygwin should replace
> the DOS paths to *nix paths, but I have seen mapping
> problems cause
> weird results in the past.
>
> Armand
>
> -----Original Message----- [modified]
> From: ssh@erdelynet.com [mailto:ssh@erdelynet.com]
> On Behalf Of Michael
> Hathaway
> Sent: Tuesday, September 20, 2005 6:53 AM
> To: ssh@erdelynet.com
> Subject: RE:
>
> The scheduled task is set to run as the user that
> has
> permisions to run the batch file whilst logged on.
> This user can also access the private and public
> key.
> I have yet to try SSH-Agent as I cannot find a copy
> for Windows.
>
> The batch file is as follows;
>
> sftp -oIdentityFile=C:\Docume~1\User\.ssh\user.key
> -b
> C:\batch\copyfile.txt user@TEST
>
> Thanks
>
> --- "Welsh, Armand" <Armand.Welsh@sscims.com> wrote:
>
> ---> [text removed] <---
>
> >
> > -----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
>
>
>
> --
> List Archives: http://erdelynet.com/archive/ssh-l/
> To Unsubscribe: Mail
> mailto:ssh+unsubscribe@erdelynet.com
>
>
>
__________________________________
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.comReceived on Tue Sep 20 12:29:09 2005
This archive was generated by hypermail 2.1.8 : Tue Sep 20 2005 - 12:29:10 EDT