in reply to Re^2: Net::SSH::Perl login
in thread Net::SSH::Perl login

Hi,

In your first post eval block, you can print the $@ variable value, it will print any error message if any.

Here, did you print the $stderr,$exit variables ?

Enable debugging, This will give you trace information from the cmd method,and should give you some clues about what is going wrong.

my $ssh = Net::SSH::Perl->new($remote_host, debug => 1);


All is well