You need to chomp and or die.
$ip = <STDIN>; # Remove the trailing newline ... chomp $ip; . . . # Make sure your connection opened my $ssh = Net::SSH::Perl->new($ip) or die($!);
You might also want to turn on the debugging option described in the docs.
In reply to Re: Net::SSH::Perl error message
by idsfa
in thread Net::SSH::Perl error message
by adam.lapins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |