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.


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. -- Cyrus H. Gordon