ActiveState Community

sftp on windows XP

Posted by seizner on 2009-09-22 14:00

Hi,
I'm trying to write a programm that will sftp files fro Windows XP platform.

I cannot find Net::SFTP module on ppm, only Net::SFTP::Foreign is available.

When I try to use it I have the following error:
password authentication is not available, IO::Pty and Expect are not installed at G:\DWH\CONE\sftpTest.pl line 9

I cannot find both IO:Pty and Expect on ppm.

Please help.

Here is my code:

use strict;
use Net::SFTP::Foreign;
my $host;
my %fargs;

$host="ftp.server.com";
%fargs = ( user => "usercode", password => 'password');
my $sftp = Net::SFTP::Foreign->new($host, %fargs);

exit;

sdetweil | Thu, 2009-09-24 08:22

I used CPAN to load Net::SFTP and its dependancies (a ton of them)

Net::SFTP uses Net::SSH::Perl which has a bug reported on a loop in the data handling (client to server).. no known fix for the loop yet..

Sam

seizner | Tue, 2009-09-29 12:09

Did you succeed to run it?

samir | Thu, 2009-11-12 14:46

Hi - I guess I'm encountering the same issue as you. Net::SFTP::Foreign produces the IO:Pty error, and Net::SFTP is just hanging.

Did you find a solution?

billgarza | Fri, 2009-11-13 04:06

THATS VERY INFORMATIVE STUFF I LIKED IT.

Solar Panel
Solar Power