I am using WinSCP to download from one of the Akamai Netstorage SFTP server. Download finishes without any error but the file is not intact. When I check its integrity using 7Zip it shows either CRC error or Unexpected end of file error. I am suspecting that its happening with files with size more than 2MB. I am using binary transfer mode, proxy to reach the SFTP server and it uses key pair for authentication. File extension is gz and size varies from 1KB to 15MB.
I tried to download the same using other sftp client like "Tectia Secure File transfer" and it works perfectly. I am suspecting the transfer mode. When I set the transfer mode to ASCI on Tectia I get the same error for the files. If I set it to binary then file downloads properly.
Please help me to get this issue fixed. WinSCP is the only client where I am getting the file / folder synchronization option. My goal is to download the files and delete from remote server which I am able to achieve with WinSCP .Net assemble / powershell script.
Version of WinSCP : 22.214.171.12481
OS Version : Windows Server 2012 R2
Transfer protocol : SFTP
Using GUI and Automation
File verification error : CRC Failed and Unpected end of file