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

Maybe some object is created in the parent or some library is loaded in the parent, and it's sensitive to which process did so (for whatever reason).

Try to do everything relating to create the connection in the child. That includes loading modules. (Keep in mind that moving a use into the loop isn't going to help achieve that goal. You'll need to switch to require.)

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