Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by BernieC (Pilgrim)
on Dec 13, 2018 at 21:06 UTC ( [id://1227222]=note: print w/replies, xml ) Need Help??


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

Eli the Bearded <*@eli.users.panix.com> 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\

  • Comment on Re^2: Net::SSH2 error - Username/PublicKey combination invalid

Replies are listed 'Best First'.
Re^3: Net::SSH2 error - Username/PublicKey combination invalid
by BernieC (Pilgrim) on Dec 14, 2018 at 00:41 UTC
    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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1227222]
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: (4)
As of 2024-04-16 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found