in reply to Re: how to close shh connectionin thread how to close shh connection
The proper way to close the connection is to undefine the $ssh variable, or just to let it go out of scope:
undef $ssh; [download]