Thank you for the suggestion of downgrading from 5.11.3 to 5.11.1. It did not solve the problem but felt brought me closer to a solution based on the below output from the logs:
Below is the output when running through a script w/ Task Scheduler (Running on WinSCP version 5.11.3)
. 2017-12-28 21:19:35.887 Searching directory "/" (real path "/")
. 2017-12-28 21:19:35.887 Listing directory "/".
> 2017-12-28 21:19:35.887 Type: SSH_FXP_OPENDIR, Size: 10, Number: 47115
< 2017-12-28 21:19:35.887 Type: SSH_FXP_STATUS, Size: 31, Number: 46604
. 2017-12-28 21:19:35.887 Discarding reserved response
< 2017-12-28 21:19:35.887 Type: SSH_FXP_STATUS, Size: 27, Number: 46852
. 2017-12-28 21:19:35.887 Discarding reserved response
< 2017-12-28 21:19:35.965 Type: SSH_FXP_HANDLE, Size: 13, Number: 47115
> 2017-12-28 21:19:35.965 Type: SSH_FXP_READDIR, Size: 13, Number: 47372
< 2017-12-28 21:19:36.074 Type: SSH_FXP_NAME, Size: 30731, Number: 47372
> 2017-12-28 21:19:36.074 Type: SSH_FXP_READDIR, Size: 13, Number: 47628
< 2017-12-28 21:19:36.184 Type: SSH_FXP_NAME, Size: 30786, Number: 47628
> 2017-12-28 21:19:36.184 Type: SSH_FXP_READDIR, Size: 13, Number: 47884
< 2017-12-28 21:19:36.277 Type: SSH_FXP_NAME, Size: 29790, Number: 47884
> 2017-12-28 21:19:36.277 Type: SSH_FXP_READDIR, Size: 13, Number: 48140
> 2017-12-28 21:19:36.277 Type: SSH_FXP_CLOSE, Size: 13, Number: 48388
Below is the output when running through a script w/ Task Scheduler (Running on WinSCP version 5.11.1)
. 2018-01-10 17:38:03.979 Server unexpectedly closed network connection
* 2018-01-10 17:38:03.979 (ESshFatal) Server unexpectedly closed network connection.
. 2018-01-10 17:38:13.230 Looking up host "sftp site" for SSH connection
. 2018-01-10 17:38:13.370 Connecting to "IP Address" port 22
. 2018-01-10 17:38:13.433 We claim version: SSH-2.0-WinSCP_release_5.11.1
. 2018-01-10 17:38:13.511 Server version: SSH-2.0-2.0
. 2018-01-10 17:38:13.511 Using SSH protocol version 2
. 2018-01-10 17:38:13.511 Have a known host key of type dss
. 2018-01-10 17:38:13.620 Using Diffie-Hellman with standard group "group14"
. 2018-01-10 17:38:13.620 Doing Diffie-Hellman key exchange with hash SHA-1
. 2018-01-10 17:38:14.821 Host key fingerprint is:
. 2018-01-10 17:38:14.821 ssh-dss 1024 ff:ae:49:25:8e:cc:d1:3b:55:32:6e:a6:80:8c:c2:b9
. 2018-01-10 17:38:14.821 Verifying host key dss "key would be here"
. 2018-01-10 17:38:14.883 Host key matches cached key
. 2018-01-10 17:38:14.883 Initialised AES-256 SDCTR client->server encryption
. 2018-01-10 17:38:14.883 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2018-01-10 17:38:14.883 Initialised AES-256 SDCTR server->client encryption
. 2018-01-10 17:38:14.883 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2018-01-10 17:38:15.086 Using username "username".
. 2018-01-10 17:38:16.131 Server offered these authentication methods: password
. 2018-01-10 17:38:16.131 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2018-01-10 17:38:16.131 Using stored password.
. 2018-01-10 17:38:16.194 Sent password
. 2018-01-10 17:38:16.319 Access granted
. 2018-01-10 17:38:16.319 Opening session as main channel
. 2018-01-10 17:38:16.397 Opened main channel
. 2018-01-10 17:38:16.584 Started a shell/command
. 2018-01-10 17:38:16.662 Doing startup conversation with host.
> 2018-01-10 17:38:16.677 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2018-01-10 17:38:16.771 Type: SSH_FXP_VERSION, Size: 72, Number: -1
. 2018-01-10 17:38:16.771 SFTP version 6 negotiated.
. 2018-01-10 17:38:16.771 Server requests EOL sequence "\r\n".
. 2018-01-10 17:38:16.771 Server support information (supported2):
. 2018-01-10 17:38:16.771 Attribute mask: 33D, Attribute bits: 17, Open flags: 7
. 2018-01-10 17:38:16.771 Access mask: 3, Open block vector: 0, Block vector: 0, Max read size: 1048576
. 2018-01-10 17:38:16.771 Attribute extensions (0)
. 2018-01-10 17:38:16.771 Extensions (0)
. 2018-01-10 17:38:16.771 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer
. 2018-01-10 17:38:16.771 Changing directory to "/".
. 2018-01-10 17:38:16.771 Getting real path for '/'
> 2018-01-10 17:38:16.771 Type: SSH_FXP_REALPATH, Size: 11, Number: 45584
< 2018-01-10 17:38:16.849 Type: SSH_FXP_NAME, Size: 92, Number: 45584
. 2018-01-10 17:38:16.849 Real path is '/'
. 2018-01-10 17:38:16.849 Trying to open directory "/".
> 2018-01-10 17:38:16.849 Type: SSH_FXP_LSTAT, Size: 14, Number: 45831
< 2018-01-10 17:38:16.943 Type: SSH_FXP_ATTRS, Size: 55, Number: 45831
. 2018-01-10 17:38:16.943 Getting current directory name.
. 2018-01-10 17:38:17.130 Directory content loaded from cache.
. 2018-01-10 17:38:17.145 Cached directory not reloaded.
. 2018-01-10 17:38:17.145 Listing directory "/".
> 2018-01-10 17:38:17.145 Type: SSH_FXP_OPENDIR, Size: 10, Number: 46091
< 2018-01-10 17:38:17.223 Type: SSH_FXP_HANDLE, Size: 13, Number: 46091
> 2018-01-10 17:38:17.223 Type: SSH_FXP_READDIR, Size: 13, Number: 46348
< 2018-01-10 17:38:17.504 Type: SSH_FXP_NAME, Size: 14646, Number: 46348
> 2018-01-10 17:38:17.504 Type: SSH_FXP_READDIR, Size: 13, Number: 46604
> 2018-01-10 17:38:17.551 Type: SSH_FXP_CLOSE, Size: 13, Number: 46852
. 2018-01-10 17:38:17.551 10 Users.csv;-;816;2017-06-23T17:30:17.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2018-01-10 17:38:17.551 20170314diageo_north_america_balance_report.csv;-;82481;2017-03-16T14:15:56.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2018-01-10 17:38:17.551 7B296FB0-376B-497e-B012-9C450E1B7327-5P-0.C7483456-A289-439d-8115-601632D005A0;-;21504;2017-05-19T15:38:34.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2018-01-10 17:38:17.551 7B296FB0-376B-497e-B012-9C450E1B7327-5P-1.C7483456-A289-439d-8115-601632D005A0;-;21504;2017-05-19T15:38:35.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
Thoughts?
Thanks.