in reply to Re: Trouble installing Net::SFTP
in thread Trouble installing Net::SFTP

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 :-(

Replies are listed 'Best First'.
Re^3: Trouble installing Net::SFTP
by chargrill (Parson) on Feb 23, 2006 at 17:20 UTC

    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 +" );
Re^3: Trouble installing Net::SFTP
by salva (Canon) on Feb 23, 2006 at 10:38 UTC
    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?
        you have to add your public key, usually ~/.ssh/id_rsa.pub, to ~/.ssh/authorized_keys on the remote machine.

        Googling, I have found this page that explains all the required steps in detail.

        If you are using the commercial version of ssh, the process is different but it is explained on the FAQ