Table of Contents

Property Compression

Namespace
SshSharp
Assembly
SshSharp.dll

Compression

Compress the connection, as ssh's Compression yes (ssh -C): offer zlib@openssh.com before none. The server decides whether it is used; Algorithms tells what was negotiated. Compression starts only after authentication succeeds (OpenSSH's delayed compression; plain zlib, which starts before it, is not supported by design) and lasts for the rest of the connection. Off by default, as in ssh: it helps on slow links and with text, costs CPU on fast links, and packet lengths can reveal what compressed well when secrets and data an attacker chooses share the connection. SshSharp compresses with Huffman coding only, as OpenSSH does, which limits that. On .NET 8 only what the server sends is compressed. Allowed in FipsMode: zlib is not a cryptographic algorithm.

public bool Compression { get; init; }

Property Value

bool