Salvador Fandiño García > Net-SSH-Any-0.02 > Net::SSH::Any



Annotate this POD


Open  0
View/Report Bugs
Module Version: 0.02   Source   Latest Release: Net-SSH-Any-0.04


Net::SSH::Any - Use any SSH module


  use Net::SSH::Any;

  my $ssh = Net::SSH::Any->new($host, user => $user, password => $passwd);

  my @out = $ssh->capture(cat => "/etc/passwd");
  my ($out, $err) = $ssh->capture2("ls -l /");


  ***                                                             ***
  *** NOTE: This is a very early release that may contain lots of ***
  *** bugs. The API is not stable and may change between releases ***
  ***                                                             ***

Currently, there are several SSH client modules available from CPAN, but no one can be used on all the situations.

Net::SSH::Any is an adapter module offering an unified API with a plugin architecture that allows to use the other modules as backends.

It will work in the same way across most operating systems and installations as far as any of the supported backend modules is also installed.

The currently supported backend modules are Net::OpenSSH and Net::SSH2 and I plan to write a backend module on top of the ssh binary and maybe another one for Net::SSH::Perl.

The API is mostly a subset of the one from Net::OpenSSH, though there are some minor deviations in some methods.


Net::OpenSSH, Net::SSH2, Net::SSH::Perl.



To report bugs send an email to the address that appear below or use the CPAN bug tracking system at

Post questions related to how to use the module in Perlmonks, you will probably get faster responses than if you address me directly and I visit Perlmonks quite often, so I will see your question anyway.

The source code of this module is hosted at GitHub:

Commercial support

Commercial support, professional services and custom software development around this module are available through my current company. Drop me an email with a rough description of your requirements and we will get back to you ASAP.

My wishlist

If you like this module and you're feeling generous, take a look at my Amazon Wish List:

Also consider contributing to the OpenSSH project this module builds upon:


Copyright (C) 2011-2012 by Salvador Fandiño, <>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.4 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: