also, just tried using ssh2->error() but it seems to be useless.
You die before actually reaching that code. Something like the following would be needed:
$ssh2->connect($hostname) or do { my ($err_code, $err_name, $err_text) = $ssh2->error(); die "cant connect to $hostname: " . "($err_code, $err_name) $err_text\n"; };
In reply to Re^2: Net::SSH2 strangeness
by ikegami
in thread Net::SSH2 strangeness
by vxp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |