App-assh
view release on metacpan or search on metacpan
app-assh
========
A perl wrapper around autossh
MOTIVATION
==========
`autossh` is a nifty little ssh-keepalive-connection-holder.
Passing in the ports for the keepalive can be clumsy though: `assh` helps you to avoid that.
See <https://metacpan.org/module/App::assh> for more information.
lib/App/assh.pm view on Meta::CPAN
version 1.1.2
=head1 SYNOPSIS
A wrapper around autossh.
=for Pod::Coverage ports_config_file ssh_config_file
=head1 MOTIVATION
`autossh` is a nifty little ssh-keepalive-connection-holder.
Passing in the ports for the keepalive can be clumsy though: `assh` helps you to avoid that.
=head1 USAGE
assh
assh HOSTNAME
=head1 REQUIREMENTS
First, you will need a file `~E<sol>.sshE<sol>config`. It looks something like this:
lib/App/assh.pm view on Meta::CPAN
ssh foo
... instead of
ssh baz@bar.example.com
Next, generate a file `~E<sol>.autossh_rc` with the following format:
foo 12345
... with the first entry on the line representing your `Host` in `~E<sol>.sshE<sol>config` and the second item on the line being the port over which to keep the autossh connection alive.
Now you can permanently connect using:
assh foo
... with the connection kept alive across network switches and computer shutdowns.
=head1 ATTRIBUTES
=over
=item *
hosts: HashRef holding the values HOSTNAME =E<gt> AUTOSSH_PORT
=back
( run in 0.737 second using v1.01-cache-2.11-cpan-df04353d9ac )