in reply to Re: Net::SFTP::Foreign frequent connection server stall
in thread Net::SFTP::Foreign frequent connection server stall

Hello Zentara,
I have not tried using Net::SSH2, but interested in learning what considerations one should go through when deciding to use SSH2 vs. SFTP. (as I am still very new to using Perl and open source... I find very hard to navigate)
  • Comment on Re^2: Net::SFTP::Foreign frequent connection server stall

Replies are listed 'Best First'.
Re^3: Net::SFTP::Foreign frequent connection server stall
by zentara (Cardinal) on Jun 20, 2012 at 18:44 UTC
    Hi, Net::SSH2 was designed to replace the old sftp and ssh module. You can ask the SSH experts on the maillist at ssh-sftp-perl maillist for all the details. The switch started about 10 years ago, and at the time the most important reason was to eliminate the numerous math library dependencies , like Math::Pari which was an installation hassle, and often resulted in sftp dropping back to very slow pure Perl math processing. It also brought all of the various ssh utilities, like sftp, scp, ssh under one module. I've found it easy to install and use, as it only requires libssh2 to be installed with it's development headers.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
      zentara, Net::SFTP::Foreign is not any of the old sftp and ssh modules Net::SSH2 intended to replace.

      Net::SSH2 is a great module, but it is far from being the only one or even the best SSH module currently available. Specifically, as a wrapper of a C library, it is very low level, not very perlish and in general hard to use. Its support for the SFTP protocol is rather rude and inefficient. And besides that, the underlying libssh2 is not as mature as other SSH implementations with new bugs being discovered all the time.

      I am highly biased here, but IMO, on Unix/Linux, Net::OpenSSH and Net::SFTP::Foreign are far superior to Net::SSH2.

        Hi Salva, I never meant to denigrate Net::SFTP::Foreign, I was just pointing out a possibly easier to use alternative, since the OP said he was at wit's end. My apologies to your fine modules if it seemed that way.

        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh