Net::SSH::Perl::SSH2 - SSH2 implementation
use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new($host, protocol => 2);
Net::SSH::Perl::SSH2 implements the SSH2 protocol. It is a subclass of Net::SSH::Perl, and implements the interface described in the documentation for that module. In fact, your usage of this module should be completely transparent; simply specify the proper protocol value (2) when creating your Net::SSH::Perl object, and the SSH2 implementation will be loaded automatically.
2
NOTE: Of course, this is still subject to protocol negotiation with the server; if the server doesn't support SSH2, there's not much the client can do, and you'll get a fatal error if you use the above protocol specification (2).
Please see the Net::SSH::Perl manpage for author, copyright, and license information.
To install Net::SSH::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SSH::Perl
CPAN shell
perl -MCPAN -e shell install Net::SSH::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.