in reply to Looking for suggestion...

Not a perl solution, but this may be easier to setup, test, and be long-term supportable:

Consider using putty with the plink and pagent tools.

This should work with both Windows, and wine in Linux.

Good luck with RTFM on those - a non-trivial learning curve for this operation, no matter which way you slice it.

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis