in reply to Server prompts for password even though client is authenticated when Parallel::ForkManager is used

Show some real code, and also tell us what do you mean by "My client is authenticated" exactly!

Are you calling ssh via system or using any of the Perl SSH modules?

Try limiting the number of children to 9.

  • Comment on Re: Server prompts for password even though client is authenticated when Parallel::ForkManager is used

Replies are listed 'Best First'.
Re^2: Server prompts for password even though client is authenticated when Parallel::ForkManager is used
by mkhan (Sexton) on Sep 12, 2011 at 20:45 UTC
    There's no real relevant code really. In the subroutine I'm just making ssh connection to the server. "ssh hostname.domain.com" and executing some simple commands. I'm using ssh in simple backquotes `ssh hostname.domain.com`
      The solution to this kind of problems usually lays on the details, so unless you tell us everything it is going to be pretty difficult to help you.

      The code you have posted so far, is almost identical to the boilerplate code from Parallel::ForkManager synopsis, it is well tested and works so the error should be in other place.