in reply to NET::SSH2 Terminates

It seems you are in a Unix/Linux box, you can try using Net::OpenSSH instead.