Re: [Ssh-sftp-perl-users] Net::SSH::Perl - Error
Brought to you by:
dbrobins
From: Thierry C. <thi...@gm...> - 2009-08-24 14:17:46
|
The problem come from the installation. It seems to me that Math::BigInt is not installed in the good way. Le lundi 24 août 2009, James A Teater a écrit : > I know the username and password is not a good approach, but I really want > to get the Net::SSH::Perl; > working. Here is the code that I have. > > print "Creating ssh object... "; > > my $host = 'server.mda.server.com'; > my $user = 'james'; > my $password = 'passwrd'; > > my $ssh = Net::SSH::Perl->new($host, protocol => 2); > > print "Starting Login ...\n"; > $ssh->login($user, $password) || die "error: could not log in"; > print "Ending Login ...\n"; > $ssh->cmd($cmd); > > Everything runs fine until I get to the Starting Login > Here are the error messages > > Math::BigInt: couldn't load specified math lib(s), fallback to > Math::BigInt::FastCalc at serverpath/KeyChain.pm line 6 > Math::BigInt: couldn't load specified math lib(s), fallback to > Math::BigInt::FastCalc at serverpath/Key.pm line 6 > Math::BigInt: couldn't load specified math lib(s), fallback to > Math::B+igInt::FastCalc at serverpath/Util.pm line 6 > Not an ARRAY reference at serverpath/Calc.pm line 25 > > program stops there and never finsihes anything below the login. > > > James |