in reply to Net::SSH::Perl error message
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.
|
|---|