Not really a solution for your problem (I'd take a wild guess at a version problem in some underlying module on that), but there is now a Net::SSH2 module, maybe that will work better for you.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan