[Bug 2888] Consider adding other compression schemes (lz4, zstd)

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Feb 24 20:07:49 AEDT 2025


https://bugzilla.mindrot.org/show_bug.cgi?id=2888

Paul Szabo <psz at maths.usyd.edu.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |psz at maths.usyd.edu.au
   Attachment #3862|                            |ok+
              Flags|                            |

--- Comment #7 from Paul Szabo <psz at maths.usyd.edu.au> ---
Created attachment 3862
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3862&action=edit
Patch for zstd support on 9,2p

Dear OpenSSH developers,

PLEASE add support of ZSTD compression!

ZSTD seems "better" than ZLIB: it achieves a better compression ratio
for X11 traffic at a lower CPU usage, allowing use of "ssh -X" when
ZLIB
would "fail" (being unresponsive). ZSTD seems to be available for most
Linux distributions; I do not know about Windows or Mac or other
operating systems.

The patches attached (against version 9.2p as distributed by Debian)
are
essentially a copy those of Sebastian Andrzej Siewior in 
https://lists.mindrot.org/pipermail/openssh-unix-dev/2023-February/040592.html
https://lists.mindrot.org/pipermail/openssh-unix-dev/2023-February/040593.html
These patches have been in active (heavy) use on my machines since
end of 2023, without any issues.

These patches are fully backwards compatible with un-patched remote
ends. When both client and server are patched, one can use "ssh -C" or
"ssh -o Compression=yes" to get ZSTD, picked as best by negotiation; or
use "ssh -o Compression=zlib" or "ssh -o Compression=zstd" to get that.
When either the client or server are un-patched, using "ssh -C" or "ssh
-o Compression=yes" gets ZLIB, as it always did.

Thanks, Paul
--
Paul Szabo       psz at maths.usyd.edu.au      
www.maths.usyd.edu.au/u/psz
School of Mathematics and Statistics   University of Sydney   
Australia

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list