While SSH'ing following error occures - unable to establish master SSH connection: master process exited unexpectedly
问题 I have a script which does ssh to number of servers ( @alive_hosts ) stored in an array and executes certain commands on those hosts (these hosts are IP address). ... use Net::Ping; use Net::OpenSSH; use Parallel::ForkManager; #these hosts are the IP addresses my @hosts = ("host1", "host2", "host3", "host4", "host5"); my $p = Net::Ping->new(); foreach my $hostname (@hosts){ my ($ret, $duration, $ip) = $p->ping($hostname); push (@alive_hosts, $hostname) if $ret; } my $ssh; my $command = "perl