Winscp failing to connect from Win2016 Server
Trying to setup Winscp to run from batch file and upload file to vendor sftp site. Simple batch file:
start c:\winscp\winscp.exe /console /script=upload2.txt /log="g:\upload.log"
the script file has this in it:
open sftp://USERNAME:Password@VENDOR SITE/ -hostkey="ssh-dss 1024 9yhLnt/T9tfWZc10LbZsWefPPNMp3cDlqULcyOXdefE="
This works fine from a regular workstations running Windows 7,8 or 10.
The log file from the server gives me this:
. 2019-09-17 08:13:35.102 Session name: USERNAME@Vendor Site (Ad-Hoc site)
. 2019-09-17 08:13:35.102 Host name: Vendor Site (Port: 22)
. 2019-09-17 08:13:35.102 User name: Username (Password: Yes, Key file: No, Passphrase: No)
. 2019-09-17 08:13:35.102 Tunnel: No
. 2019-09-17 08:13:35.102 Transfer Protocol: SFTP
. 2019-09-17 08:13:35.102 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2019-09-17 08:13:35.102 Disable Nagle: No
. 2019-09-17 08:13:35.102 Proxy: None
. 2019-09-17 08:13:35.102 Send buffer: 262144
. 2019-09-17 08:13:35.102 SSH protocol version: 2; Compression: No
. 2019-09-17 08:13:35.102 Bypass authentication: No
. 2019-09-17 08:13:35.102 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2019-09-17 08:13:35.102 GSSAPI: Forwarding: No; Libs: gssapi32,sspi,custom; Custom:
. 2019-09-17 08:13:35.102 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2019-09-17 08:13:35.102 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2019-09-17 08:13:35.102 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2019-09-17 08:13:35.102 Simple channel: Yes
. 2019-09-17 08:13:35.102 Return code variable: Autodetect; Lookup user groups: Auto
. 2019-09-17 08:13:35.102 Shell: default
. 2019-09-17 08:13:35.102 EOL: LF, UTF: Auto
. 2019-09-17 08:13:35.102 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2019-09-17 08:13:35.102 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No; Exit code 1 is error: No
. 2019-09-17 08:13:35.102 SFTP Bugs: Auto,Auto
. 2019-09-17 08:13:35.102 SFTP Server: default
. 2019-09-17 08:13:35.102 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2019-09-17 08:13:35.102 Cache directory changes: Yes, Permanent: Yes
. 2019-09-17 08:13:35.102 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2019-09-17 08:13:35.102 DST mode: Unix
. 2019-09-17 08:13:35.102 --------------------------------------------------------------------------
. 2019-09-17 08:13:35.102 Looking up host "Vendor Site" for SSH connection
. 2019-09-17 08:13:35.102 Connecting to "Vendor Site IP Address" port 22
. 2019-09-17 08:13:35.133 We claim version: SSH-2.0-WinSCP_release_5.15.4
. 2019-09-17 08:13:35.133 Network error: Software caused connection abort
How do I get around the Software Connection Abort?
I've change the real info to protect the innocent with Username, Password, Vendor Site, Vendor Site IP address
Any and All help would be appreciated.
start c:\winscp\winscp.exe /console /script=upload2.txt /log="g:\upload.log"
the script file has this in it:
open sftp://USERNAME:Password@VENDOR SITE/ -hostkey="ssh-dss 1024 9yhLnt/T9tfWZc10LbZsWefPPNMp3cDlqULcyOXdefE="
This works fine from a regular workstations running Windows 7,8 or 10.
The log file from the server gives me this:
. 2019-09-17 08:13:35.102 Session name: USERNAME@Vendor Site (Ad-Hoc site)
. 2019-09-17 08:13:35.102 Host name: Vendor Site (Port: 22)
. 2019-09-17 08:13:35.102 User name: Username (Password: Yes, Key file: No, Passphrase: No)
. 2019-09-17 08:13:35.102 Tunnel: No
. 2019-09-17 08:13:35.102 Transfer Protocol: SFTP
. 2019-09-17 08:13:35.102 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2019-09-17 08:13:35.102 Disable Nagle: No
. 2019-09-17 08:13:35.102 Proxy: None
. 2019-09-17 08:13:35.102 Send buffer: 262144
. 2019-09-17 08:13:35.102 SSH protocol version: 2; Compression: No
. 2019-09-17 08:13:35.102 Bypass authentication: No
. 2019-09-17 08:13:35.102 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2019-09-17 08:13:35.102 GSSAPI: Forwarding: No; Libs: gssapi32,sspi,custom; Custom:
. 2019-09-17 08:13:35.102 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2019-09-17 08:13:35.102 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2019-09-17 08:13:35.102 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2019-09-17 08:13:35.102 Simple channel: Yes
. 2019-09-17 08:13:35.102 Return code variable: Autodetect; Lookup user groups: Auto
. 2019-09-17 08:13:35.102 Shell: default
. 2019-09-17 08:13:35.102 EOL: LF, UTF: Auto
. 2019-09-17 08:13:35.102 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2019-09-17 08:13:35.102 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No; Exit code 1 is error: No
. 2019-09-17 08:13:35.102 SFTP Bugs: Auto,Auto
. 2019-09-17 08:13:35.102 SFTP Server: default
. 2019-09-17 08:13:35.102 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2019-09-17 08:13:35.102 Cache directory changes: Yes, Permanent: Yes
. 2019-09-17 08:13:35.102 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2019-09-17 08:13:35.102 DST mode: Unix
. 2019-09-17 08:13:35.102 --------------------------------------------------------------------------
. 2019-09-17 08:13:35.102 Looking up host "Vendor Site" for SSH connection
. 2019-09-17 08:13:35.102 Connecting to "Vendor Site IP Address" port 22
. 2019-09-17 08:13:35.133 We claim version: SSH-2.0-WinSCP_release_5.15.4
. 2019-09-17 08:13:35.133 Network error: Software caused connection abort
How do I get around the Software Connection Abort?
I've change the real info to protect the innocent with Username, Password, Vendor Site, Vendor Site IP address
Any and All help would be appreciated.