Help for this page

Select Code to Download


  1. or download this
    use Net::SSH::Perl;
      use strict();
    ...
    $ssh->login($user, $pass);
    #-- execute the command
    my($stdout, $stderr, $exit) = $ssh->cmd("ls -l /home/$user");
    
  2. or download this
    Error -----
    Name "main::pass" used only once: possible typo at Untitled2 line 17.
    Can't locate object method "new" via package "Net::SSH::Perl" (perhaps
    + you forgot to load "Net::SSH::Perl"?) at Untitled2 line 15.