Help for this page

Select Code to Download


  1. or download this
    c:\var\client>ssh-keygen
    Generating public/private rsa key pair.
    ...
    |.     . o .      |
    |       o         |
    +----[SHA256]-----+
    
  2. or download this
    c:\var\client>ssh -i client_key localhost
    Last login: Thu Aug 22 16:34:22 2019
    
    $
    
  3. or download this
    use Net::SSH::Perl;
    my $server='localhost';
    ...
    
    $ssh = Net::SSH::Perl->new($server, %params);
    $ssh->login();
    
  4. 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.