in reply to call to Net::SSH2 functions crashes caller object
If you get a SEGV error that means that there is some bug on Net::SSH2, or in some other XS module or in perl.
Try to write a minimal test script that still triggers the error and then send it as a bug report to Net::SSH2 maintainer. He is quite fast fixing bugs on Net::SSH2!
Otherwise, as it seems you are running your script in some kind of Unix/Linux system, you may like to switch to Net::OpenSSH.
In Section
Seekers of Perl Wisdom