in reply to Net::SSH::Perl and getting User from config

As you seem to be running your script in a Linux/Unix box, you should consider using Net::OpenSSH instead. It runs on top OpenSSH and uses its configuration.
  • Comment on Re: Net::SSH::Perl and getting User from config