Help for this page

Select Code to Download


  1. or download this
    use Net::SSH::Expect;
    use strict; 
    ...
    
    my $login_output = $ssh->login();
    
  2. or download this
    
    my $cpscp = $ssh->exec("copy scp install ip addr  filename");
    ...
    print("No string found\n");
    }
    
  3. or download this
    $ssh->waitfor('Enter username for remote scp server:\s*\z ', 5) or die
    + "not found";
    $ssh->send("root");