Subject: | documentation change with Net::SSH::Perl |
Can you add that ssh->login() doesn't make the connection but applies the settings and that cmd() actually makes the initial connection?
Also, that to catch login failures, that the cmd() has to be placed into an eval block?
eval {
($stdout, $stderr, $exit) = $ssh->cmd("df -k $dump_dir");
};
if ($@)
{
print "SSH Connection attempt failed\n"
if ($@ =~ m/Permission denied/i);
}
anyways, this is just a request :-)