- 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";
- 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
- 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