The proper way to close the connection is to undefine the $ssh variable, or just to let it go out of scope:
undef $ssh;
In reply to Re^2: how to close shh connection
by salva
in thread how to close shh connection
by Adler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |