Net::SSH::(W32)Perl error checking

S

SlimClity

Hi,

I'm using the Net::SSH::(W32)Perl module to do some stuff on a BSD
machine. But I have some problems with error detection with this
module:

# Load modules
use Net::SSH::W32Perl;W32

# Create new SSH object and login
$ssh = Net::SSH::W32Perl->new($hostname)
or die "Er is een fout met de hostname, controleer deze...";

Gives:
Can't connect to 123.123.123.800: Invalid argument (instead of my
error message)

$ssh->login($username, $password)
or die "Uw gebruikersnaam of wachtwoord is fout...";
Gives:
Permission denied at ssh_test.pl at line .. (instead of my error
message)

I've tried using: PrintError=>0, but that doesn't help. What could be
wrong?

Thanks for the time/help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top