App-PersistentSSH
view release on metacpan or search on metacpan
lib/App/PersistentSSH.pm view on Meta::CPAN
If the host is not reachable, F<ssh> is stopped.
=head1 CONFIGURATION
Add something alongs the lines of
Host *
ControlPath /tmp/%r@%h:%p
to your F<ssh_config>, in order to configure the path that the F<ssh> control
master will bind on. C<ControlMaster auto> is not needed.
The advantage over C<ControlMaster auto> is that if you close your initial ssh,
which is the control master under C<auto> all subsequently made connections
will also close. By keeping a daemonized, managed instance of C<ssh> this
problem is avoided.
Use C<ssh -v yourhost> to verify that the connection really is going through
the control master.
( run in 0.979 second using v1.01-cache-2.11-cpan-2398b32b56e )