in reply to Trouble installing Net::SFTP

Have you tried using Net::SFTP::Foreign instead? It doesn't have any dependency other than the OpenSSH binary client (or the commercial one), which should be already available on your systems!

The only drawback (or feature?) is that it doesn't support automatic password authentication, you have to use pairs of public and private keys or enter the pasword on the console.

I am currently rewriting it, improving its performance (it's already much faster than Net::SFTP) and adding several new high level methods as find, glob, rget and rput (recursive versions of get and put). Development versions are already available from CPAN, though they will not be installed automatically by the CPAN module. Feedback about those is very welcome!!!

Replies are listed 'Best First'.
Re^2: Trouble installing Net::SFTP
by shilpam (Sexton) on Feb 23, 2006 at 10:08 UTC
    The reason I am not using Net::SFTP::Foreign is that I need automatic password authentication. The Perl script is going to be a part of an automated task in my application, so automatic authentication is a must.
    Anyways, thanks a lot!!!
    I still need help on Math::Pari problem :-(

      Whew! I was inspired to install Net::SSH::Perl to try and help troubleshoot another node recently, and it had to install Math::Pari as a prerequisite. Tons of problems! I think my first problem was that I'm on a Mac. HOWEVER, I've finally worked my way through a successful installation, and I think the INSTALL file included in the build directory of Math::Pari might help.... for me, it's located at ~/.cpanplus/5.8.6/build/Math-Pari-2.010703/INSTALL. Following the suggestions for "problem compilations" seemed to help me, with the final outcome:

      Writing /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Math/Pari/ +.packlist Appending installation info to //System/Library/Perl/5.8.6/darwin-thre +ad-multi-2level/perllocal.pod

      Contents of said file included here for your convenience.

      Hope this is somewhat helpful :)



      --chargrill
      $/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ } + sig map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu +" );
      But is there any reason to not use pairs of public and private keys for authentication?

      Hard coding ssh password in your scripts is usually a very bad idea. It just means throwing away several of the meassures ssh takes to trust your environment.

        Can you pl. give me an eg of how to use public/private keys for authentication?