http://www.perlmonks.org?node_id=1012028


in reply to Net::OpenSSH - unable to establish master SSH connection: control command failed

Turn on debugging before calling the constructor and post the output:
$Net::OpenSSH::debug=-1;
Which version of OpenSSH are you using (ssh -V)?

Also, some custom configuration on ~/.ssh/config may be interfering with the module inner workings.