Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PARI error when using Net::SSH::Perl

Status
Not open for further replies.

zig007

Programmer
Aug 27, 2008
3
SE
Hi all!
I try to login through SSH using this code:

#!/usr/bin/perl -w
use Net::SSH::perl;
my $remotehost = "host";
my $remoteport = "22";
my $remoteuser = "auser";
my $remotepassword = "apassword";
my $ssh = Net::SSH::perl->new($remotehost);
$ssh->login($remoteuser, $remotepassword);

I then get this error on ->login():
"PARI: *** incorrect type in a transcendental function. at /usr/local/lib/perl/5.8.8/Math/Pari.pm line 994."

Now, it was by itself pretty problematic installing Pari (the version on cpan is 2.1.7) but as far as I understand, that's kind of normal. The only thing I have found anywhere on this error anywhere is a mentioning at And that is a discussion from 1999 regarding a bug.

Help? Anyone?
 
Have you tried using net::ssh instead of net::ssh::perl? I had nothing but problems with net::ssh::perl.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Oh!
I never realised that they were two different libraries!
I will try that immidiately.

 
Thanks a lot, Travis!

Net::SSH didn't fit my bill, since it only allowed login through certificates as far as I could see.
However, in it's documentation was mentioned Net::SSH::Expect which worked like a charm!

Thanks for putting me on the right track, i'll see if I can give something back to the forum when I learn a bit more.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top