Skip Menu |

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id: 80090
Status: resolved
Priority: 0/
Queue: Net-SSH2

People
Owner: Nobody in particular
Requestors: info [...] gwendragon.de
Cc: CARNIL [...] cpan.org
AdminCc:

Bug Information
Severity: Important
Broken in: 0.45
Fixed in: (no value)



Subject: Compression zlib can not be set in method()
Setting zlib compression client <-> server and vice versa does not work. ssh2->method('COMP_CS') and ssh2->method('COMP_SC') always shows none testcase appended Tested with Debian 6.06 / libssh2 1.4.2-1.1 / openssh 6.0p1-3 See https://github.com/rkitover/net-ssh2/issues/7
Subject: com_fail_method.pl
#!/usr/bin/perl use strict; use warnings; use Net::SSH2; # my $server = 'myserver.org'; #change to your own server for your needs! my $user = 'meomy'; my $password = 'ThIsIsYuRpaZZwurd'; my $ssh2 = Net::SSH2->new(); $ssh2->connect($server, 22) or die $!; $ssh2->auth_password($user,$password); $ssh2->method('COMP_CS', 'zlib'); print "COMP_CS is ", $ssh2->method('COMP_CS'); $ssh2->method('COMP_SC', 'zlib'); print "COMP_SC is ", $ssh2->method('COMP_SC'); $ssh2->disconnect();
On Wed Oct 10 07:52:33 2012, info@gwendragon.de wrote: Show quoted text
> Setting zlib compression client <-> server and vice versa does not work. > ssh2->method('COMP_CS') and ssh2->method('COMP_SC') always shows none > > testcase appended > Tested with Debian 6.06 / libssh2 1.4.2-1.1 / openssh 6.0p1-3 > > > See https://github.com/rkitover/net-ssh2/issues/7
zlib compression has been broken on all the stable libssh2 releases to date. On the other hand it works properly when using both the development versions of Net::SSH2 and libssh2.
Fixed in the development branch. Thank you for reporting it.