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) 
        or $ssh2->die_with_error ;
    
  2. or download this
    Host key verification failed: unable to perform the check (-46 LIBSSH2
    +_ERROR_KNOWN_HOSTS)