in reply to Re^2: Explicitly kill a Net::OpenSSH connection?
in thread Explicitly kill a Net::OpenSSH connection?

_kill_master is called from the DESTROY method when the object goes out of scope, so there is usually no need to call it explicitly.

In any case, I don't fully understand your message, did undef $ssh solve your problem at all?

If the answer is no, activate the module debugging and post here the output:

$Net::OpenSSH::debug = -1;