Getting error attempting to script send SFTP using winscp.com.
WinSCP v 5.9.3 (Build 7136)
Windows Server 2008R2 SP1
Problem signature:
Problem Event Name: APPCRASH
Application Name: WinSCP.com
Application Version: 4.4.0.7136
Application Timestamp: 00000000
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.18229
Fault Module Timestamp: 51fb1116
Exception Code: c0000005
Exception Offset: 0000dee1
OS Version: 6.1.7601.2.1.0.272.7
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
command line:
D:\Scripts\SFTP\cust888>"D:\Program Files (x86)\WinSCP\winscp.com" /script="TmsSFtpscript.txt" /xmllog=Logs\TmsSFtpSendOneFile.xml /parameter "D:\Comms\SFTP\Cust888\OUT\test.txt" >> logs\TmsSFtpSendOneFile.log.txt
TmsSFtpScript.txt is (site and key obscured for security:
option batch abort
option confirm off
open sftp://sftp1.obscured.com -hostkey="ssh-rsa 2048 obscured"
put "%1%" data/
close
exit
Server/Protocol information for the remote server (site info and fingerprint obscured):
File transfer protocol = SFTP-3
Cryptographic protocol = SSH-2
SSH implementation = OpenSSH_5.3
Encryption algorithm = aes
Compression = No
------------------------------------------------------------
Server host key fingerprint
ssh-rsa 2048 *obscured*
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = Yes
Can execute arbitrary command = No
Can create symbolic/hard link = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = Yes
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional information
The server supports these SFTP extensions:
posix-rename@openssh.com="1"
statvfs@openssh.com="2"
fstatvfs@openssh.com="2"
------------------------------------------------------------
We have an identical script running for another remote site and it does not have a problem. The other site's Server and Protocol info (site info and fingerprint obscured) is:
File transfer protocol = SFTP-3
Cryptographic protocol = SSH-2
SSH implementation = Sun_SSH_1.1.3
Encryption algorithm = aes
Compression = No
------------------------------------------------------------
Server host key fingerprint
ssh-rsa 1024 *obscured*
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = Yes
Can execute arbitrary command = No
Can create symbolic/hard link = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = No
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional information
The server does not support any SFTP extension.
Attached are the logs.
Thanks for all you do!