
Net::SSH::Perl::WithSocks - connect to an SSH host through a TCP proxy

my $ssh = Net::SSH::Perl::WithSocks->new( 'motherbrain.nanabox.net',
with_socks => {
socks_host => 'motherbrain.nanabox.net',
socks_port => 9000,
}
);
$ssh->login(); # Use it just like a regular Net::SSH object

This is a utility to make simple the process of connecting to an SSH host by way of a TCP proxy, such as those provided by OpenSSH servers for tunneling. It is based off of Net::SSH::Perl so that it can work in Windows as well, though the basic idea could be expounded upon to support Net::SSH2 as well.

Net::SSH::Perl::ProxiedIPC is a module that can create chains of SSH objects of any type to connect to servers behind layers of security. It depends heavily on Net::SSH::Perl::WithSocks to pull off basic one-off hops and requests.

Jennie Rose Evers-Corvina <seven@nanabox.net>, Matthew S Trout


You can use this package under the same terms as Perl itself.