Net-SSH2 0.09 review

Download
by rbytes.net on

Net-SSH2 is a SSH 2 protocol interface. SYNOPSIS Top use Net::SSH2; my $ssh2 = Net::SSH2->new(); $ssh2->connect('

License: Perl Artistic License
File size: 64K
Developer: David Robins
0 stars award from rbytes.net

Net-SSH2 is a SSH 2 protocol interface.

SYNOPSIS

Top
use Net::SSH2;

my $ssh2 = Net::SSH2->new();

$ssh2->connect('example.com') or die;

if ($ssh2->auth_keyboard('fizban')) {
my $chan = $ssh2->channel();
$chan->exec('program');

my $sftp = $ssh2->sftp();
my $fh = $sftp->open('/etc/passwd') or die;
print $_ while < $fh >;
}

Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org) library. It supports the SSH2 protocol (there is no support for SSH1) with all of the key exchanges, ciphers, and compression of libssh2.

Unless otherwise indicated, methods return a true value on success and false on failure; use the error method to get extended error information.

The typical order is to create the SSH2 object, set up the connection methods you want to use, call connect, authenticate with one of the auth methods, then create channels on the connection to perform commands.

Requirements:
Perl

Net-SSH2 0.09 keywords