Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: help to deal with ssh connection

by mitchreward (Acolyte)
on May 18, 2014 at 22:52 UTC ( [id://1086570]=note: print w/replies, xml ) Need Help??


in reply to Re: help to deal with ssh connection
in thread help to deal with ssh connection

thanks for your answer, but I'm using net::ssh (not net::ssh::perl neither net::openssh). Is it possible to authenticate with public key and the net::ssh module ?

Replies are listed 'Best First'.
Re^3: help to deal with ssh connection
by vinoth.ree (Monsignor) on May 19, 2014 at 04:43 UTC

    Before we go to ssh with public key authentication, correct the typo in your post Re^2: help to deal with ssh connection, its Net::SSH not set:ssh

    You can get the doc for Net::SSH here Net::SSH

    In that doc its been explained how to generate public key and copy that into your remote machine. If you have done those steps, post us what error your script report.


    All is well

      done, I've edited my previous post.

      Regarding the keys, that's already generated and installed properly on both computer.
      Actually I get the error : Permission denied (publickey,password,keyboard-interactive).

      What I can see in the doc is the Net:SSH module is : "You don't (at least not with this module). Use RSA or DSA keys."

        In that doc the question is "Q: How do you supply a password to connect with ssh within a perl script using the Net::SSH module?"

        The user wants to give password while authenticating, so the answer is do not use the RSA or DSA keys.


        All is well

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1086570]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2025-07-10 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.