Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Installing Net::SSH::Perl

by deadpickle (Pilgrim)
on May 22, 2007 at 18:04 UTC ( [id://616822]=perlquestion: print w/replies, xml ) Need Help??

deadpickle has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Installing Net::SSH::Perl
by Fletch (Bishop) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found