http://www.perlmonks.org?node_id=937295


in reply to Error in Login by useing Net::OpenSSH

There probably isn't anything wrong with your Perl code. Can you ssh via the command line? There are a lot reason why a ssh connection could fail. OpenSSH has excellent documentation here: http://www.openssh.org/manual.html. You might want to try executing ssh from the command line and add verbosity with the -vvvv switch.