Perl - Net::SSH::Perl - czy ktoś przebrnął przez instalację na Debianie Squeeze?
: 16 grudnia 2011, 13:14
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:
wynik:
Toż to jakiś dramat.
Chrzanić ten moduł.
Znalazłem dość podobny:
Net::SSH2
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);
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.
Chrzanić ten moduł.
Znalazłem dość podobny:
Net::SSH2