Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Installing Net::SSH::Perl

by deadpickle (Pilgrim)
on May 22, 2007 at 18:04 UTC ( #616822=perlquestion: print w/replies, xml ) Need Help??
deadpickle has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install Net::SSH::Perl so that I can do public-key authentication along with the Net::SFTP::Foreign module. I tried installing the module and received some errors that I dont know how to resolve. This is just the last part of the list.
Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/02-buffer.t 255 65280 19 38 200.00% 1-19 t/03-packet.t 255 65280 10 20 200.00% 1-10 Failed 2/6 test scripts, 66.67% okay. 29/116 subtests failed, 75.00% o +kay. make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force

Edit: g0n - code tags

Replies are listed 'Best First'.
Re: Installing Net::SSH::Perl
by Fletch (Chancellor) on May 22, 2007 at 18:20 UTC

    Wall of Text crits you for ^15023^.
    You die.

    Why should anyone here bother wading through that when you've obviously not bothered reading the docs for Net::SFTP::Foreign which state pretty clearly that it doesn't use Net::SSH::Perl (rather it sits on top of whatever command-line ssh client you have installed)?

      Ok, I admit it was a very bad post I should have been more descriptive as to what I want to do. Net::SFTP::Foreign does not have a password variable but the author gives an example of automating login by using Expect. I tried this and failed but the author recommends using public-key authorization to do this instead. the only thing I could find on this is in the Net::SSH::Perl:: Auth::PublicKey module. But when I went to install it I got those errors. Is there any other way to do this?
        You should be able to use Net::SFTP::Foreign with public key authentication, but first...

        You will need to install an appropriate version of ssh (say, openssh) and set up its public keys. For openssh, use ssh-keygen. See the section "Linux and Windows OpenSSH to OpenSSH (ssh2)" at for the basic procedure; do check for the correct file permissions, though - see the answer to item 3.14 in

        Once all that is set up correctly, you should be able to enter "ssh -v" and log in with public key authentication. If that works, Net::SFTP::Foreign should be straightforward.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://616822]
Approved by marto
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2017-10-24 04:35 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (286 votes). Check out past polls.