Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

Comment on Installing Net::SSH::Perl
Download Code
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 http://www.mines.edu/~gmurray/HowTo/sshNotes.html for the basic procedure; do check for the correct file permissions, though - see the answer to item 3.14 in http://www.openssh.org/faq.html#3.14.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://616822]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls