Perl - Net::SSH::Perl - czy kto

Potrzebujesz pomocy z C, C++, perl, python, itp.
sethiel
Junior Member
Posty: 762
Rejestracja: 28 stycznia 2008, 11:50
Lokalizacja: Wrocław

Perl - Net::SSH::Perl - czy ktoś przebrnął przez instalację na Debianie Squeeze?

Post autor: sethiel »

Perl - Net::SSH::Perl - czy ktoś przebrnął przez instalację na Squeeze?
Po długiej męce w końcu "niby się udało" z wynikiem skryptu:

Kod: Zaznacz cały

#!/usr/bin/perl

use Net::SSH::Perl;

my $host = "192.168.100.2";
my $user = "user";
my $password = "pass";

#-- set up a new connection
my $ssh = Net::SSH::Perl->new($host);
#-- authenticate
$ssh->login($user, $pass);
wynik:

Kod: Zaznacz cały

host:/skrypty# ./skrypt.perl
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/local/share/perl/5.10.1/Crypt/DH.pm line 6
Permission denied at ./skrypt.perl line 13

Kod: Zaznacz cały

perl -v

This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
(with 53 registered patches, see perl -V for more detail)

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Toż to jakiś dramat.

Chrzanić ten moduł.
Znalazłem dość podobny:
Net::SSH2
ODPOWIEDZ