$ssh = Net::SSH::Perl->new($ip); $ssh->login($remoteUser, $remotePass) ; ($stdout, $stderr, $exit) = $ssh->cmd($cmd);