Help for this page

Select Code to Download


  1. or download this
    use Net::OpenSSH;
    use warnings;
    ...
      my $t =  Net::OpenSSH->new('ildep@sxm0019', master_opts => [-o => "U
    +serKnownHostsFile=/dev/null", -o => "StrictHostKeyChecking=no"], time
    +out => 10, ctl_dir => $path);
      $t->error and SendMail "unable to connect to remote host: ". $t->err
    +or;
      my $cmd = "ls -l";
    
  2. or download this
    x  Connecting to sxm0019
    command-line: line 0: Bad configuration option: ServerAliveInterval
    unable to connect to remote host: unable to establish master SSH conne
    +ction: master process exited unexpectedly
    
  3. or download this
    /tmp/ssh.out:
    debug2: we did not send a packet, disable method
    ...
    debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
    debug1: Exit status 0
    rc: 0