I'm getting the exact same error. I'm using cygwin. This error happens when using the new method.
Here is my code that generates the error.
$Fab2SwitchSSH = Net::SSH::Any->new( $fab2_ip, user => $fab2_userid, password => $fab2_password);
Comment on Re^3: Query on Running perl Script in linux
Also, lots of bugs have been fixed in the development version (available from GitHub) of the module. You may like to give it a try. If you are using the Perl from Cygwin, the new Ssh_Cmd backend is probably your best option.
I have not release it to CPAN because the Net::SSH2 backend is currently broken.