You can enable the ZLIB compression mode to speed up data transfers and communication. For highly compressible files such as text files, the compression ratio can be up to 10:1, making the ZLIB compression mode very useful. However, the transfer speed might be slower when compressing already-compressed files.
using ComponentPro.Net; ... // Create a new instance of the Sftp class. Sftp client = new Sftp(); // Turn on transfer compression. By default, the EnableCompression property is set to false. client.Config.EnableCompression = true; // If you wish to turn off transfer compression // client.EnableCompression = false; // Connect to the server client.Connect("server", 22); // ... client.Disconnect();