What is the correct way to use compression? #1597
Unanswered
LadderLogic
asked this question in
Q&A
Replies: 1 comment
-
If the server requires it, then it will be used automatically. If you know that the server supports it, you can disable the default "none" by doing something like: using (var client = new SftpClient("host", "user", "password"))
{
client.ConnectionInfo.CompressionAlgorithms.Remove("none");
client.Connect();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am only more confused after going through the compression PR and the prior discussion around it here 👽. I have a use case where my .net client application running on windows needs to download a file from Linux server with compression enabled (large bulky uncompressed data). Based on the PR, the default is none. How do I "turn on" the compression from the .net code? Does it automatically pick-up if my sshd on the linux is set to compression? can I do it by session similar to
ssh -C
?Beta Was this translation helpful? Give feedback.
All reactions