Hi
I`m having serious problems using the Net::SSH2 Perl binding for
libssh2. I`m trying to login to a remote SSH server
(SSH-1.99-OpenSSH_4.4 on OpenSuse) but the keyboard-interactive
authentication always fails with a rather weird error:
-6 LIBSSH2_ERROR_ALLOC Unable to allocate memory for
keyboard-interactive authentication
The perl code I`m using is:
#!/usr/bin/perl
use Net::SSH2;
my $ssh = Net::SSH2->new();
$ssh->debug(1);
$ssh->connect('10.10.20.129') or die ("Cannot connect: ",
$ssh->error, "\n");
if ( $ssh->auth_keyboard('root','xxxxxx') ) {
print "OK\n";
} else {
print "Error\n";
(my $code, my $name, my $desc) = $ssh->error;
print "$code $name $desc\n";
}
My Net::SSH2 version is 0.10 and I`m using libssh2-0.15. Is there
anything I can do to hunt down the reason for this strange behaviour ?
And yes, I`m sure the password is right ;).
-- Maciej Grela ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ libssh2-devel mailing list libssh2-devel_at_lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-develReceived on 2007-07-31