Thread Net::SSH2 mit Compression? (16 answers)
Opened by jan at 2012-10-07 21:29

GwenDragon
 2012-10-08 12:43
#162549 #162549
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use 5.008;
use strict;
use warnings;

use Net::SSH2; # ist Version 0.45

my $ssh2 = Net::SSH2->new();
$ssh2->connect('debby', 22) or die $!;
print "\n", join " ",($ssh2->error()); 
$ssh2->auth_password(qw(test test));
print "\n", join " ",($ssh2->error());
$ssh2->method('COMP_CS', 'zlib');
print "\n", join " ",($ssh2->error()); 
$ssh2->method('COMP_SC', 'zlib');
print "\n", join " ",($ssh2->error()); 
$ssh2->disconnect();
print "\n", join " ",($ssh2->error()); 


ergibt auf Win 7 Perl 5.10.1 an ein Debian 6.06 / libssh2 1.4.2-1.1 / openssh 6.0p1-3 folgendes:
-37 LIBSSH2_ERROR_EAGAIN Unable to exchange encryption keys
-37 LIBSSH2_ERROR_EAGAIN Would block waiting
-37 LIBSSH2_ERROR_EAGAIN Would block waiting
-37 LIBSSH2_ERROR_EAGAIN Would block waiting
-37 LIBSSH2_ERROR_EAGAIN Would block waiting

Also ohne Probleme, nicht so wie bei dir.
Last edited: 2012-10-08 13:10:59 +0200 (CEST)

View full thread Net::SSH2 mit Compression?