in reply to Using Net::SFTP on a windows system.

Net::SSH::Perl seems to expect that you will have either setup the 'user_config' parameter in the original new() call or will have environment variable 'HOME' set so that it can look for "$ENV{HOME}/.ssh/config". I think that is the source of your uninitialized value. (looking in Net::SSH::Perl.pm to see this)

Because there was no config (guessing here) the port defaulted to 'ssh'. When Net::SSH::Perl tried to lookup 'ssh' using getservbyname() it couldn't find the definition and so died. Perhaps your <windir>\system32\drivers\etc\services file doesn't have a definition for "ssh 22/tcp", or perhaps the system can't find this file?

  • Comment on Re: Using Net::SFTP on a windows system.

Replies are listed 'Best First'.
Re^2: Using Net::SFTP on a windows system.
by dwhitney (Beadle) on Mar 03, 2005 at 18:43 UTC
    You were right that I needed to update 'services' file. I still get an error, but at least it is a different one...