Friday, June 21, 2013

Net::SSH::Perl vs Net::OpenSSH Which one is better?

I had a tough time to get over the ssh connetion using perl programming.  I did visit lot of forums and googling .. but in vein.

Not even one since post mentioned about how to get this working and how to make it work.  Hence i thought i shall post this so that someone like me who is having the same issue can read and know how to make it work.

Below is the error you see when to first install "Net::SSH::Perl" :

------------------------------------------------------------------
Can't locate loadable object for module Math::GMP
------------------------------------------------------------------
Now, to get rid of this you need to either keep installing all the dependencies and swim in that with errors and issues or use "Net::OpenSSH"

Net::OpenSSH is a simple implementation and still you can get the job done.  Now, what i did in my setup is that i first made a passwordless setup across the machines(which was a mix of HPUX, Linux(RH5,6 & SUSE).  Implemented the perl program to communicate between these machines to get the job done using OpenSSH.  Bingo! it works like a charm now.

So, what u need to do is, just get the module "Net::OpenSSH" here and keep going.