sftp file transfer issue

"Singh, Upkar" <[email protected]>
Newsgroups gmane.os.openbsd.www
Message-ID <B7A31CE88134FD4A9951FC8F22680F7E056793D8@nex2006cdc.us.global.schwab.com>
Hi,

I've been getting issue in SFTP file transfer process on windows 2003
server. The batch work fine when I try to execute the job manually.
However, when I try to run the same job thru Windows task scheduler then
it fails. Basically, in task scheduler, it is not able to recognize the
id_dsa key which is available on c:\document settings
\profile\.ssh\id_dsa.

Any idea , how to use the SFTP option for identifying the id_dsa key?

Any help on this would be highly appreciated.

script : @ECHO OFF
sftp -v -b "C:\sched\scripts\bxxxxx\bxxxx.txt"
[email protected]

This is v mode output

Connecting to elink-sshftp.xxxxxxx.com...
OpenSSH_3.7.1p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to elink-sshftp.xxxxx.com [171xxxx130] port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
Connect:Enterprise_
UNIX_2.4.02
debug1: no match: Connect:Enterprise_UNIX_2.4.02
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7.1p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-sha1 none
debug1: kex: client->server aes128-cbc hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'elink-sshftp.com' is known and matches the RSA host
key.
debug1: Found key in /.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue:
publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
debug1: Calling cleanup 0x41c120(0x0)
Connection closed
Press any key to continue . . .

Thanks
Upkar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.