On Jul 31, 2007, at 7:42 AM, [EMAIL PROTECTED] wrote: > 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 ;).
There was a bug in 0.15 which has since been fixed. I would suggest using the latest version from CVS or a daily snapshot. Jim -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- http://www.FreeBSD.org The Power to Serve [EMAIL PROTECTED] http://www.TheHousleys.net --------------------------------------------------------------------- The wise man built his network upon Un*x. The foolish man built his network upon Windows. ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel