Bolemo has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I have another question regarding Net::OpenSSH
I am currently creating one master connexion to a device when my script is started, and then I only regularly send commands on that device using open3.
It works really great, but I encounter one problem : if the remote device is restarted, then the master SSH connection is disconnected (obviously), but is never reopened, meaning the Net::OpenSSH does not try to reconnect a closed/lost master connection when an open3 command is called.
How can implement the master connection to be recreated when it is lost?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH reconnect master if conn. closed
by haukex (Archbishop) on Sep 26, 2020 at 19:02 UTC | |
by Bolemo (Acolyte) on Sep 27, 2020 at 12:38 UTC | |
by salva (Canon) on Sep 28, 2020 at 15:54 UTC | |
by Bolemo (Acolyte) on Sep 28, 2020 at 19:42 UTC | |
|
Re: Net::OpenSSH reconnect master if conn. closed
by perlfan (Parson) on Sep 28, 2020 at 01:32 UTC |