in reply to Problem to connect remote host

Try updating Net::SSH::Perl. version 1.8 isn't even available anymore - the current version is 1.30.

update: alternatively, try setting your $HOME environment variable.