Help for this page

Select Code to Download


  1. or download this
    use Net::SSH::Perl;
    
    ...
    print "Login is successful \n";
    ($output,$errors,$exit)=$conn->cmd("ls -l");
    print $output;
    
  2. or download this
    C:\perl-program>perl connRemoteHost.pl
    Can't locate Math/Pari.pm in @INC (@INC contains: C:/Perl/site/lib C:/
    +Perl/lib .
    ...
    EN0> line 1.
    Compilation failed in require at C:/Perl/lib/Net/SSH/Perl.pm line 52, 
    +<GEN0> lin
    e 1.
    
  3. or download this
    C:\perl-program>perl connRemoteHost.pl
    Can't locate auto/Net/SSH2/autosplit.ix in @INC (@INC contains: C:/Per
    +l/site/lib
    ...
    l/site/lib C:/Perl/lib .) at connRemoteHost.pl line 1
    Compilation failed in require at connRemoteHost.pl line 1.
    BEGIN failed--compilation aborted at connRemoteHost.pl line 1.