- or download this
c:\var\client>ssh-keygen
Generating public/private rsa key pair.
...
|. . o . |
| o |
+----[SHA256]-----+
- or download this
c:\var\client>ssh -i client_key localhost
Last login: Thu Aug 22 16:34:22 2019
$
- or download this
use Net::SSH::Perl;
my $server='localhost';
...
$ssh = Net::SSH::Perl->new($server, %params);
$ssh->login();
- or download this
c:\var\client>perl test.pl
localhost: Reading configuration data C:\Users\user\.ssh\config
...
localhost: Next method to try is publickey.
localhost: Trying pubkey authentication with key file 'client_key'
Wrong key type at C:/Strawberry/perl/site/lib/Net/SSH/Perl/Auth/Public
+Key.pm line 83.