SriniK has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I need to take a backup from remote linux host through a perl script from a windows machine. I am using strawberry on windows as active perl give more problem while installing the Net::SFTP module.
I am using the Net::SFTP module but throws some error message. Can some solve this issue.
use strict; use warnings; use Net::SFTP; my $SFTPSite = '#.#.#.#' ; my $userid = '****'; my $pword = '******'; #** ** ** ** ** ** ** ** # Setup to do the SFTP my $sftp = Net::SFTP->new( $SFTPSite, $userid, $pword ) or die "Could NOT create SFTP " ; #Net::SFTP const +ructor print "Yes\n";

My error message looks like this.
The getpwuid function is unimplemented at C:/strawberry/perl/site/lib/ +Net/SSH/Perl/SSH2.pm line 39, <GEN0> line 1.

Replies are listed 'Best First'.
Re: Unable to connect to a remote host through Net::SFTP
by ig (Vicar) on Jul 04, 2011 at 17:08 UTC