I wrote a power script to download the FTP file to the local machine automatically.
Often I got the transfer channel can't be opened error. Can you please help?
try {
Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
try {
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
Protocol = [WinSCP.Protocol]::ftp
HostName = $remoteHostName
UserName = $remoteUsername
Password = $remotePassword
Timeout = New-TimeSpan -Minutes 5
#SshHostKeyFingerprint = "ssh-rsa 2048 xxxxxxxxxxx...="
}
# Force IP address for passive mode connections
# https://winscp.net/eng/docs/rawsettings
$sessionOptions.AddRawSettings("FtpForcePasvIp2", 0)
$session = New-Object WinSCP.Session
#$session.ExecutablePath = "C:\Program Files (x86)\WinSCP\WinSCP.exe"
$session.SessionLogPath = $winscpLogFilePath
writeToLog ("Connecting to $($remoteHostName)!")
$session.Open($sessionOptions)
if ($session.FileExists($remoteFilePath)) {
writeToLog ("File $($remoteFileName) presented in $($remoteHostName) $($remoteFolderPath)!")
$reportHTMLMessage += "<td><font color=green>Available</font></td>"
try {
$session.GetFiles($remoteFilePath, $downloadFolderPath).Check()
}
catch {
$getFileError = $true
throw $_
}
}
else {
writeToLog ("File $($remoteFileName) not presented in $($remoteHostName) $($remoteFolderPath)!")
$reportHTMLMessage += "<td><font color=red>Missing</font></td>"
}
}
catch {
writeToLog ($_ | Out-String)
$statusDescription = removeNewlineChar(($_.Exception.Message).toString())
$reportHTMLMessage += "<td><font color=red>$($statusDescription)</font></td>"
}
finally {
$session.Dispose()
}
}
catch {
writeToLog ($_ | Out-String)
$statusDescription = removeNewlineChar(($_.Exception.Message).toString())
$reportHTMLMessage += "<td><font color=red>$($statusDescription)</font></td>"
}
. 2020-11-14 06:33:36.070 --------------------------------------------------------------------------
. 2020-11-14 06:33:36.070 WinSCP Version 5.17.8 (Build 10803) (OS 10.0.17763 - Windows Server 2019 Standard)
. 2020-11-14 06:33:36.070 Configuration: nul
. 2020-11-14 06:33:36.070 Log level: Normal
. 2020-11-14 06:33:36.070 Local account: MONOLITHICPOWER\srv-adexa
. 2020-11-14 06:33:36.070 Working directory: C:\Program Files (x86)\WinSCP
. 2020-11-14 06:33:36.070 Process ID: 11768
. 2020-11-14 06:33:36.070 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\srv-adexa\AppData\Local\Temp\wscp10A4.00C63A95.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /dotnet=5.17.8 /ini=nul /log="E:\AdexaTest\SCP\10Downloader\60Log\winscp-20201114.log" /console /consoleinstance=_4260_62874096_471
. 2020-11-14 06:33:36.070 Time zone: Current: GMT-8, Standard: GMT-8 (Pacific Standard Time), DST: GMT-7 (Pacific Daylight Time), DST Start: 3/8/2020, DST End: 11/1/2020
. 2020-11-14 06:33:36.070 Login time: Saturday, November 14, 2020 6:33:36 AM
. 2020-11-14 06:33:36.070 --------------------------------------------------------------------------
. 2020-11-14 06:33:36.070 Script: Retrospectively logging previous script records:
> 2020-11-14 06:33:36.070 Script: option batch on
< 2020-11-14 06:33:36.070 Script: batch on
< 2020-11-14 06:33:36.070 Script: reconnecttime 120
> 2020-11-14 06:33:36.070 Script: option confirm off
< 2020-11-14 06:33:36.070 Script: confirm off
> 2020-11-14 06:33:36.070 Script: option reconnecttime 120
< 2020-11-14 06:33:36.070 Script: reconnecttime 120
> 2020-11-14 06:33:36.070 Script: open ftp://mps_ftp:***@ftp11.hhgrace.com -passive=1 -timeout=300 -rawsettings FtpForcePasvIp2="0"
. 2020-11-14 06:33:36.070 --------------------------------------------------------------------------
. 2020-11-14 06:33:36.070 Session name: mps_ftp@ftp11.hhgrace.com (Ad-Hoc site)
. 2020-11-14 06:33:36.070 Host name: ftp11.hhgrace.com (Port: 21)
. 2020-11-14 06:33:36.070 User name: mps_ftp (Password: Yes, Key file: No, Passphrase: No)
. 2020-11-14 06:33:36.070 Transfer Protocol: FTP
. 2020-11-14 06:33:36.070 Ping type: Dummy, Ping interval: 30 sec; Timeout: 300 sec
. 2020-11-14 06:33:36.070 Disable Nagle: No
. 2020-11-14 06:33:36.070 Proxy: None
. 2020-11-14 06:33:36.070 Send buffer: 262144
. 2020-11-14 06:33:36.070 UTF: Auto
. 2020-11-14 06:33:36.070 FTPS: None [Client certificate: No]
. 2020-11-14 06:33:36.070 FTP: Passive: Yes [Force IP: On]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2020-11-14 06:33:36.070 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2020-11-14 06:33:36.070 Cache directory changes: Yes, Permanent: Yes
. 2020-11-14 06:33:36.070 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2020-11-14 06:33:36.070 Timezone offset: 0h 0m
. 2020-11-14 06:33:36.070 --------------------------------------------------------------------------
. 2020-11-14 06:33:36.070 Connecting to ftp11.hhgrace.com ...
. 2020-11-14 06:33:36.383 Connected with ftp11.hhgrace.com. Waiting for welcome message...
< 2020-11-14 06:33:36.679 220 Welcome to HHGrace FTP (ftp11.hhgrace.com)!
> 2020-11-14 06:33:36.679 USER mps_ftp
< 2020-11-14 06:33:36.976 331 Please specify the password.
> 2020-11-14 06:33:36.976 PASS *********
< 2020-11-14 06:33:42.539 230 Login successful.
> 2020-11-14 06:33:42.539 SYST
< 2020-11-14 06:33:42.851 215 UNIX Type: L8
> 2020-11-14 06:33:42.851 FEAT
< 2020-11-14 06:33:43.148 211-Features:
< 2020-11-14 06:33:43.148 EPRT
< 2020-11-14 06:33:43.148 EPSV
< 2020-11-14 06:33:43.148 MDTM
< 2020-11-14 06:33:43.179 PASV
< 2020-11-14 06:33:43.179 REST STREAM
< 2020-11-14 06:33:43.179 SIZE
< 2020-11-14 06:33:43.179 TVFS
< 2020-11-14 06:33:43.179 UTF8
< 2020-11-14 06:33:43.179 211 End
> 2020-11-14 06:33:43.179 OPTS UTF8 ON
< 2020-11-14 06:33:44.539 200 Always in UTF8 mode.
. 2020-11-14 06:33:44.539 Connected
. 2020-11-14 06:33:44.539 --------------------------------------------------------------------------
. 2020-11-14 06:33:44.539 Using FTP protocol.
. 2020-11-14 06:33:44.539 Doing startup conversation with host.
> 2020-11-14 06:33:44.539 PWD
< 2020-11-14 06:33:46.945 257 "/"
. 2020-11-14 06:33:46.945 Getting current directory name.
. 2020-11-14 06:33:46.945 Startup conversation with host finished.
< 2020-11-14 06:33:46.945 Script: Active session: [1] mps_ftp@ftp11.hhgrace.com
> 2020-11-14 06:33:47.429 Script: pwd
< 2020-11-14 06:33:47.429 Script: /
> 2020-11-14 06:33:47.492 Script: stat -- "/daily_shipment/MPSINSTOCK_20201114.CSV"
. 2020-11-14 06:33:47.492 Listing file "/daily_shipment/MPSINSTOCK_20201114.CSV".
. 2020-11-14 06:33:47.492 Retrieving file information...
> 2020-11-14 06:33:47.492 PWD
< 2020-11-14 06:33:47.789 257 "/"
> 2020-11-14 06:33:47.789 CWD /daily_shipment/MPSINSTOCK_20201114.CSV
< 2020-11-14 06:33:48.086 550 Failed to change directory.
> 2020-11-14 06:33:48.086 TYPE I
< 2020-11-14 06:33:48.382 200 Switching to Binary mode.
> 2020-11-14 06:33:48.382 SIZE /daily_shipment/MPSINSTOCK_20201114.CSV
< 2020-11-14 06:33:48.679 213 163
> 2020-11-14 06:33:48.679 MDTM /daily_shipment/MPSINSTOCK_20201114.CSV
< 2020-11-14 06:33:48.976 213 20201114074006
. 2020-11-14 06:33:48.976 Retrieving file information successful
. 2020-11-14 06:33:48.976 MPSINSTOCK_20201114.CSV;-;163;2020-11-14T07:40:06.000Z;3;"" [0];"" [0];---------;0
< 2020-11-14 06:33:48.976 Script: ---------- 0 163 Nov 13 23:40:06 2020 MPSINSTOCK_20201114.CSV
> 2020-11-14 06:33:49.164 Script: get -nopermissions -preservetime -transfer="binary" -- "/daily_shipment/MPSINSTOCK_20201114.CSV" "E:\AdexaTest\SCP\10Downloader\20Source\20201114\"
. 2020-11-14 06:33:49.164 Listing file "/daily_shipment/MPSINSTOCK_20201114.CSV".
. 2020-11-14 06:33:49.164 Retrieving file information...
> 2020-11-14 06:33:49.164 PWD
< 2020-11-14 06:33:49.461 257 "/"
> 2020-11-14 06:33:49.461 CWD /daily_shipment/MPSINSTOCK_20201114.CSV
< 2020-11-14 06:33:50.117 550 Failed to change directory.
> 2020-11-14 06:33:50.117 TYPE I
< 2020-11-14 06:33:50.414 200 Switching to Binary mode.
> 2020-11-14 06:33:50.414 SIZE /daily_shipment/MPSINSTOCK_20201114.CSV
< 2020-11-14 06:33:50.711 213 163
> 2020-11-14 06:33:50.711 MDTM /daily_shipment/MPSINSTOCK_20201114.CSV
< 2020-11-14 06:33:51.351 213 20201114074006
. 2020-11-14 06:33:51.351 Retrieving file information successful
. 2020-11-14 06:33:51.351 MPSINSTOCK_20201114.CSV;-;163;2020-11-14T07:40:06.000Z;3;"" [0];"" [0];---------;0
. 2020-11-14 06:33:51.351 Copying 1 files/directories to local directory "E:\AdexaTest\SCP\10Downloader\20Source\20201114\" - total size: 163
. 2020-11-14 06:33:51.351 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2020-11-14 06:33:51.351 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2020-11-14 06:33:51.351 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2020-11-14 06:33:51.351 File: '/daily_shipment/MPSINSTOCK_20201114.CSV' [2020-11-14T07:40:06.000Z] [163]
. 2020-11-14 06:33:51.351 Copying "/daily_shipment/MPSINSTOCK_20201114.CSV" to local directory started.
. 2020-11-14 06:33:51.351 Binary transfer mode selected.
. 2020-11-14 06:33:51.351 Starting download of /daily_shipment/MPSINSTOCK_20201114.CSV
> 2020-11-14 06:33:51.351 CWD /daily_shipment
< 2020-11-14 06:33:51.992 250 Directory successfully changed.
> 2020-11-14 06:33:51.992 PWD
< 2020-11-14 06:33:52.289 257 "/daily_shipment"
> 2020-11-14 06:33:52.289 TYPE A
< 2020-11-14 06:33:52.586 200 Switching to ASCII mode.
> 2020-11-14 06:33:52.586 PASV
< 2020-11-14 06:33:52.883 227 Entering Passive Mode (58,246,226,78,42,95).
> 2020-11-14 06:33:52.883 LIST
. 2020-11-14 06:33:52.883 Connecting to 58.246.226.78:10847 ...
< 2020-11-14 06:33:53.492 150 Here comes the directory listing.
. 2020-11-14 06:33:53.492 Data connection closed
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 1954 Oct 29 15:13 MPSINSTOCK_20110610.csv
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 130 Oct 13 07:40 MPSINSTOCK_20201013.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 233 Oct 14 07:40 MPSINSTOCK_20201014.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 365 Oct 15 07:40 MPSINSTOCK_20201015.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 161 Oct 16 07:40 MPSINSTOCK_20201016.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 228 Oct 17 07:40 MPSINSTOCK_20201017.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 500 Oct 18 07:40 MPSINSTOCK_20201018.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 567 Oct 19 07:40 MPSINSTOCK_20201019.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 229 Oct 20 07:40 MPSINSTOCK_20201020.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 427 Oct 21 07:40 MPSINSTOCK_20201021.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 163 Oct 23 07:40 MPSINSTOCK_20201023.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 264 Oct 24 07:40 MPSINSTOCK_20201024.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 396 Oct 25 07:40 MPSINSTOCK_20201025.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 429 Oct 26 07:40 MPSINSTOCK_20201026.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 95 Oct 27 07:40 MPSINSTOCK_20201027.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 228 Oct 28 07:40 MPSINSTOCK_20201028.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 331 Oct 29 07:40 MPSINSTOCK_20201029.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 2 Oct 30 07:40 MPSINSTOCK_20201030.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 230 Oct 31 07:40 MPSINSTOCK_20201031.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 230 Nov 01 07:40 MPSINSTOCK_20201101.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 668 Nov 02 07:40 MPSINSTOCK_20201102.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 128 Nov 03 07:40 MPSINSTOCK_20201103.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 161 Nov 04 07:40 MPSINSTOCK_20201104.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 227 Nov 05 07:40 MPSINSTOCK_20201105.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 295 Nov 06 07:40 MPSINSTOCK_20201106.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 232 Nov 07 07:40 MPSINSTOCK_20201107.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 300 Nov 08 07:40 MPSINSTOCK_20201108.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 440 Nov 09 07:40 MPSINSTOCK_20201109.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 130 Nov 10 07:40 MPSINSTOCK_20201110.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 198 Nov 11 07:40 MPSINSTOCK_20201111.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 231 Nov 12 07:40 MPSINSTOCK_20201112.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 129 Nov 13 07:40 MPSINSTOCK_20201113.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 163 Nov 14 07:40 MPSINSTOCK_20201114.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13249 Oct 13 07:40 SHIPPMENT20201013.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13249 Oct 14 07:40 SHIPPMENT20201014.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13249 Oct 15 07:40 SHIPPMENT20201015.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13653 Oct 16 07:40 SHIPPMENT20201016.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13653 Oct 17 07:40 SHIPPMENT20201017.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13653 Oct 18 07:40 SHIPPMENT20201018.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 13653 Oct 19 07:40 SHIPPMENT20201019.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14362 Oct 20 07:40 SHIPPMENT20201020.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14362 Oct 21 07:40 SHIPPMENT20201021.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14919 Oct 22 07:40 SHIPPMENT20201022.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14919 Oct 23 07:40 SHIPPMENT20201023.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14919 Oct 24 07:40 SHIPPMENT20201024.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14919 Oct 25 07:40 SHIPPMENT20201025.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 14919 Oct 26 07:40 SHIPPMENT20201026.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 15581 Oct 27 07:40 SHIPPMENT20201027.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 15581 Oct 28 07:40 SHIPPMENT20201028.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 15581 Oct 29 07:40 SHIPPMENT20201029.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 15990 Oct 30 07:40 SHIPPMENT20201030.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 15990 Oct 31 07:40 SHIPPMENT20201031.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 10678 Nov 01 07:40 SHIPPMENT20201101.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 10678 Nov 02 07:40 SHIPPMENT20201102.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 11604 Nov 03 07:40 SHIPPMENT20201103.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 11604 Nov 04 07:40 SHIPPMENT20201104.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 11604 Nov 05 07:40 SHIPPMENT20201105.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 11655 Nov 06 07:40 SHIPPMENT20201106.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12008 Nov 07 07:40 SHIPPMENT20201107.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12008 Nov 08 07:40 SHIPPMENT20201108.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12008 Nov 09 07:40 SHIPPMENT20201109.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12576 Nov 10 07:40 SHIPPMENT20201110.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12576 Nov 11 07:40 SHIPPMENT20201111.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12576 Nov 12 07:40 SHIPPMENT20201112.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12784 Nov 13 07:40 SHIPPMENT20201113.CSV
. 2020-11-14 06:33:53.492 -rw-r--r-- 1 759 596 12932 Nov 14 07:40 SHIPPMENT20201114.CSV
< 2020-11-14 06:33:53.789 226 Directory send OK.
> 2020-11-14 06:33:53.789 TYPE I
< 2020-11-14 06:33:54.086 200 Switching to Binary mode.
> 2020-11-14 06:33:54.086 PASV
< 2020-11-14 06:33:54.382 227 Entering Passive Mode (58,246,226,78,42,96).
> 2020-11-14 06:33:54.382 RETR MPSINSTOCK_20201114.CSV
. 2020-11-14 06:33:54.382 Connecting to 58.246.226.78:10848 ...
. 2020-11-14 06:34:15.414 Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
. 2020-11-14 06:34:15.414 Copying files from remote side failed.
* 2020-11-14 06:34:15.414 (ExtException) **Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.**
* 2020-11-14 06:34:15.414 Copying files from remote side failed.
. 2020-11-14 06:34:15.414 Asking user:
. 2020-11-14 06:34:15.414 Error transferring file '/daily_shipment/MPSINSTOCK_20201114.CSV'. ("Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.","Copying files from remote side failed.")
< 2020-11-14 06:34:15.414 Script: Error transferring file '/daily_shipment/MPSINSTOCK_20201114.CSV'.
< 2020-11-14 06:34:15.414 Script: Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
< 2020-11-14 06:34:15.414 Copying files from remote side failed.
* 2020-11-14 06:34:15.414 (ESkipFile) Error transferring file '/daily_shipment/MPSINSTOCK_20201114.CSV'.
* 2020-11-14 06:34:15.414 Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
* 2020-11-14 06:34:15.414 Copying files from remote side failed.
. 2020-11-14 06:34:15.414 Copying finished: Transferred: 0, Elapsed: 0:00:24, CPS: 0/s
. 2020-11-14 06:34:15.414 Script: Failed
> 2020-11-14 06:34:16.196 Script: exit
. 2020-11-14 06:34:16.196 Script: Exit code: 1
. 2020-11-14 06:34:16.196 Disconnected from server
. 2020-11-14 06:34:16.977 --------------------------------------------------------------------------