Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Net::OpenSSH How do I orrectly close the connection?

by Skeeve (Parson)
on May 09, 2011 at 06:16 UTC ( [id://903706]=perlquestion: print w/replies, xml ) Need Help??

Skeeve has asked for the wisdom of the Perl Monks concerning the following question:

Hi!

I just skimmed through the perldoc of Net::OpenSSH but couldn't find how to close the connection established with

my $ssh= Net::OpenSSH->new($myhost);
There seems to be no "close" methode. Can someone please enlighten me? Do I simply send an "exit" or "logout" command?


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re: Net::OpenSSH How do I orrectly close the connection?
by salva (Canon) on May 09, 2011 at 06:50 UTC
    undef $ssh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://903706]
Approved by salva
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found