Search code examples
c#sshconsole-applicationsftpchilkat

SFTP SSH2 Download Rate (C#)


I am developing a C# Console Application which downloads files from an SFTP Server with SSH Key Pair Authentication.

I am using the Chilkat API.

The files I am attempting to download are very large, between 8GB-13GB.

Currently the max download speed I can get using my app is around 570 KB/s

If I try to download the same file using FileZilla I get downloads speeds of 2.6 MB/s

Running from the same computer on the same network.

Is there anyway to match the download speeds of FileZilla with a console app?


Solution

  • There are several factors that influence SFTP speed. SSH buffer size, SFTP buffer size, pipeline length are among those factors (encryption algorithm is another one). One more factor is a language. Optimized C++ code will always be faster than C# code. So while you can achieve comparable speeds with FileZilla, you are unlikely to match them.

    Also did you check alternative SFTP components (there are plenty of them on the market)?