[Detroit-pm] Net::SSH::Perl using SSH1

Donald Dukelow dondukelow at yahoo.com
Mon Apr 14 07:34:39 PDT 2008


I just resently install Niet::SSH::Perl and all it's depacies on a Red Hat Linix sustem.  When I use SSH2 there is no problem.  But when I have to use SSH1 I get the following error.
   
  Can't locate object method "new" via package "Math::GMP" at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Buffer.pm line 148.

  Line 148 readds
   
   Math::GMP->new("0x$hex");

  The line in my code reads.
   # my $ssh = Net::SSH::Perl->new("$sw_info->[3]", protocol => '1');
  my $ssh = Net::SSH::Perl->new("$sw_info->[3]");
  I've tried it both ways and the network switch doesn't take SSH2 at all.
  The array elemament $sw_info->[3] contains the IP address of the network switch I want to connect to.

        
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/detroit-pm/attachments/20080414/d52920c7/attachment.html 


More information about the Detroit-pm mailing list