NAME
Data::Collector::Engine::OpenSSH - An OpenSSH engine for Data::Collector utilizing Net::OpenSSH
SYNOPSIS
use Data::Collector;
my $collector = Data::Collector->new(
engine => 'OpenSSH', # the default
engine_args => {
user => 'me',
host => 'soymilkyway',
passwd => 'crow@MIDn1ght',
},
);
ATTRIBUTES
host(Str)
Host to connect to. Required.
user(Str)
Username to connect with. Defaults to session user.
passwd(Str)
Password to be used in connection. As with the OpenSSH ssh
program, if a password is ot provided, it will go over other methods (such as keys), so this is not required.
ssh(Object)
Contains the Net::OpenSSH object that is used.
SUBROUTINES/METHODS
connect
This method creates the Net::OpenSSH object and connects to the host.
run
This functions runs the given command on the host using ssh and returns the results.
AUTHOR
Sawyer X, <xsawyerx at cpan.org>