Help for this page

Select Code to Download


  1. or download this
    my @id_files = qw(/home/me/.ssh/id_rsa.pub);
    my $ssh = Net::SSH::Perl->new( 'host', debug => 1, protocol => 2, iden
    +tity_files => \@id_files );
    $ssh->login()
    my ( $o, $e, $ex ) = $ssh->cmd( 'uptime' );
    
  2. or download this
    host: Trying empty user-authentication request.
    host: Authentication methods that can continue: publickey,keyboard-int
    +eractive.
    ...
    host: Trying pubkey authentication with key file '/home/me/.ssh/id_rsa
    +.pub'
    host: Will not query passphrase for '/home/me/.ssh/id_rsa.pub' in batc
    +h mode.
     Loading private key failed.