steelcarn99 has asked for the wisdom of the Perl Monks concerning the following question:
This returns the following lines as the errors, for which I can’t seem to find any good support on. I appreciate your time and any suggestions you might have. Thankyou.#filename: ingest.pl # start of Net::OpenSSH use Net::OpenSSH; my $host = '************'; my $port = '22'; my $user = 'root'; my $pass = '***********'; my $ssh = Net::OpenSSH->new($host); $ssh->error and die "couldn't establish connection: " . $ssh->error; $ssh->system("ls") or die "remote command failed: " . $ssh->error; my @ls = $ssh->capture("ls"); $ssh->error and die "remote ls command failed: " . $ssh->error;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module Net::OpenSSH error child exited with code 255
by salva (Canon) on Jul 31, 2009 at 18:05 UTC | |
|
Re: Module Net::OpenSSH error child exited with code 255
by Khen1950fx (Canon) on Aug 01, 2009 at 00:21 UTC | |
by salva (Canon) on Aug 01, 2009 at 10:23 UTC |