Footprintless::Tunnel - Provides tunneling over ssh
version 1.04
# Standard way of creating tunnels use Footprintless; my $tunnel = Footprintless->new()->tunnel($coordinate); eval { $tunnel->open(); my $local_hostname = $tunnel->get_local_hostname(); my $port = $tunnel->get_local_port(); # do stuff with tunnel } my $error = $@; eval {$tunnel->close()}; die($error) if ($error);
This module provides tunneling over ssh
tunnel => { ssh => 'ssh -q', local_hostname => 'foo', local_port => 1234, tunnel_hostname => 'bar', tunnel_usename => 'fred', destination_hostname => 'baz', destination_port => 5678, control_socket_dir => '/home/me/.ssh/control_socket' }
Creates a new tunnel configured by $entities.
$entities
Closes the tunnel.
Returns the hostname used to access the tunnel.
Returns the port used to access the tunnel.
Returns a truthy value if the tunnel is open.
Opens the tunnel.
Lucas Theisen <lucastheisen@pastdev.com>
This software is copyright (c) 2016 by Lucas Theisen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please see those modules/websites for more information related to this module.
Footprintless
Config::Entities
To install Footprintless, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Footprintless
CPAN shell
perl -MCPAN -e shell install Footprintless
For more information on module installation, please visit the detailed CPAN module installation guide.