You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting zlib compression client <-> server and vice versa does not work.
Try this snippet:
#!/usr/bin/perluse 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) ordie$!;
$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();
ssh2->method('COMP_CS') and ssh2->method('COMP_SC') always shows none
Tested with Debian 6.06 / libssh2 1.4.2-1.1 / openssh 6.0p1-3
The text was updated successfully, but these errors were encountered:
libssh2 with compression fixes has been released and the net-ssh2 changes to support the compression API have been merged. The compression support can be enabled as below
my $ssh = Net::SSH2->new();
$ssh->connect($host, $port, Compress => 1);
Setting zlib compression client <-> server and vice versa does not work.
Try this snippet:
ssh2->method('COMP_CS')
andssh2->method('COMP_SC')
always shows noneTested with Debian 6.06 / libssh2 1.4.2-1.1 / openssh 6.0p1-3
The text was updated successfully, but these errors were encountered: