Hi Monks,
I don't know how to best put it but here is my problem:
I have two machines, Client A and a Server B.
My client is authenticated and does not need a password to connect to B normally. When I do an ssh from A to B it logs in without a password.
However,
When I use multiple parallel connections using the Parallel::Forkmanager module, it sometimes asks for password.
Here's the code I use to make connections:
Code:
use Parallel:ForkManager;
my $pm=new Parallel::ForkManager(15);
foreach my $processNumber (1 .. 15) {
$pm->start and next;
<subroutine to ssh to the server and perform some actions>;
$pm->finish;
}
$pm->wait_all_children;
Every process has about 5000 more iterations of creating some tables etc.
Intermittently, it asks for password to authenticate the client when it normally does not.
What could be the problem? Any help is appreciated.