Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Sftp using winscp command line not working

I suppose you do not run WinSCP from directory, where ida_dsa file is.
Gos75

Sftp using winscp command line not working

Hi,
I am having strange issue. i am trying to sftp a file from windows to linux server. i have got public key generated. When i run it using command line prompt it works fine. However when i am invoking the command line using perl script and passing encessary arguments sftp is not working . Kindly see log below. the perl script is being invoked by my id however file needs to be sent as process id. Any help is appreciaited

. 2009-10-15 16:09:34.472 --------------------------------------------------------------------------
. 2009-10-15 16:09:34.472 WinSCP Version 4.1.5 (Build 410) (OS 5.2.3790 Service Pack 1)
. 2009-10-15 16:09:34.472 Login time: Thursday, October 15, 2009 4:09:34 PM
. 2009-10-15 16:09:34.472 --------------------------------------------------------------------------
. 2009-10-15 16:09:34.472 Session name: xxxxappl@XXXXXXXap01
. 2009-10-15 16:09:34.472 Host name: XXXXXXXap01 (Port: 22)
. 2009-10-15 16:09:34.472 User name: xxxxappl (Password: No, Key file: No)
. 2009-10-15 16:09:34.472 Tunnel: No
. 2009-10-15 16:09:34.472 Transfer Protocol: SFTP (SCP)
. 2009-10-15 16:09:34.472 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-10-15 16:09:34.472 Proxy: none
. 2009-10-15 16:09:34.472 SSH protocol version: 2; Compression: No
. 2009-10-15 16:09:34.472 Bypass authentication: No
. 2009-10-15 16:09:34.472 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-10-15 16:09:34.472 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-10-15 16:09:34.472 SSH Bugs: -,-,-,-,-,-,-,-
. 2009-10-15 16:09:34.472 SFTP Bugs: -,-
. 2009-10-15 16:09:34.472 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-10-15 16:09:34.472 Shell: default, EOL: 0
. 2009-10-15 16:09:34.472 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-10-15 16:09:34.472 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-10-15 16:09:34.472 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-10-15 16:09:34.472 Cache directory changes: Yes, Permanent: Yes
. 2009-10-15 16:09:34.472 DST mode: 1
. 2009-10-15 16:09:34.472 --------------------------------------------------------------------------
. 2009-10-15 16:09:34.472 Looking up host "XXXXXXX01"
. 2009-10-15 16:09:34.472 Connecting to 10.2.18.29 port 22
. 2009-10-15 16:09:34.472 Server version: SSH-2.0-OpenSSH_3.9p1
. 2009-10-15 16:09:34.472 We claim version: SSH-2.0-WinSCP_release_4.1.5
. 2009-10-15 16:09:34.488 AcquireCredentialsHandle: No credentials are available in the security package

. 2009-10-15 16:09:34.488 GSSKEX disabled: The operation completed successfully.

. 2009-10-15 16:09:34.488 Using SSH protocol version 2
. 2009-10-15 16:09:34.488 Doing Diffie-Hellman group exchange
. 2009-10-15 16:09:34.519 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-10-15 16:09:34.676 Host key fingerprint is:
. 2009-10-15 16:09:34.676 ssh-rsa 1024 e8:18:43:65:3f:05:be:a3:af:dc:8d:fb:e8:c9:f4:69
. 2009-10-15 16:09:34.676 Initialised AES-256 SDCTR client->server encryption
. 2009-10-15 16:09:34.676 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-10-15 16:09:34.676 Initialised AES-256 SDCTR server->client encryption
. 2009-10-15 16:09:34.676 Initialised HMAC-SHA1 server->client MAC algorithm
. 2009-10-15 16:09:34.722 Reading private key file "ida_dsa"
. 2009-10-15 16:09:34.722 Unable to use this key file (unable to open file)
! 2009-10-15 16:09:34.722 Unable to use key file "ida_dsa" (unable to open file)
! 2009-10-15 16:09:34.722 Using username "xxxxappl".
. 2009-10-15 16:09:34.722 Prompt (6, SSH password, , &Password: )
. 2009-10-15 16:09:34.722 Disconnected: Unable to authenticate

The ida_ssda key works fine if i open cygwin and invoke scp directly....