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

Net::SSH2 error - Username/PublicKey combination invalid

by BernieC (Pilgrim)
on Dec 13, 2018 at 02:05 UTC ( [id://1227197]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ssh2 = Net::SSH2->new() ;
    $ssh2->connect(HOST) or $ssh2->die_with_error ;
    $ssh2->check_hostkey(tofu => HOSTKEY) 
    ...
    $ssh2->auth_publickey(USER, PUBLICKEY, PRIVATEKEY)
        or $ssh2->die_with_error ;
    $ssh2->auth_ok() ;
    
  2. or download this
    Username/PublicKey combination invalid (-18 LIBSSH2_ERROR_PUBLICKEY_UN
    +RECOGNIZED
    ) at D:\Perl\ondreamhost.pl line 28.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-25 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found