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

Re: Net::SSH2 error - Username/PublicKey combination invalid

by salva (Canon)
on Dec 13, 2018 at 09:57 UTC ( #1227204=note: print w/replies, xml ) Need Help??

in reply to Net::SSH2 error - Username/PublicKey combination invalid

That probably means that the remote host has not accepted the given public key as valid for the user.
  • Comment on Re: Net::SSH2 error - Username/PublicKey combination invalid

Replies are listed 'Best First'.
Re^2: Net::SSH2 error - Username/PublicKey combination invalid
by BernieC (Pilgrim) on Dec 13, 2018 at 21:06 UTC
    Eli the Bearded <*> wrote: } Really does sound like the user/key pair isn't right. I've checked a bunch more -- I turned on logging in my SSH client and, indeed, it, too, fails. Grumble.

    Now I'm not sure why -- I *thought* perhaps incorrectly?? that SSH key pairs were server agnostic. That is, I thought/assumed that if my public/private key work on server A they'll work on server B. Apparently that is not the case and at the moment I have no clue why. So not a perl problem, which I might have had a chance of dealing with, but SSH key exchange problem about which I have no clue. Off to try to understand it.. Sorry to think this is a Perl problem... /Bernie\

      Problem solved! A unix-friend made a suggestion that proved to be correct: the authorized_keys file has to be non-writable. I had just copied in the key so it got some default protections. chmod 710 did the trick. Sorry to bother you guys...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-01-22 22:00 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.