Ask a Question related to PERL Modules, Design and Development.
-
Michael Powe #1
Net::SFTP on Windows
I can't get this to work on windows (XP). Can someone help me out?
PDXPOWEM01: Reading configuration data /.ssh/config
PDXPOWEM01: Reading configuration data /etc/ssh_config
PDXPOWEM01: Connecting to ctc.homelinux.net, port 22.
PDXPOWEM01: Remote protocol version 2.0, remote software version OpenSSH_3.9p1
PDXPOWEM01: Net::SSH::Perl Version 1.25, protocol version 2.0.
PDXPOWEM01: No compat match: OpenSSH_3.9p1.
Your vendor has not defined Fcntl macro F_SETFL, used at C:/Perl/site/lib/Net/SSH/Perl.pm line 214.
I've spent hours -- literally -- trying to find some answer.
code looks like this:
use strict;
use warnings;
use Net::SSH::W32Perl;
use Net::SFTP;
sub doSftp(){
my $SSH_HOST = "ctc.homelinux.net";
my $SSH_PWD = "*********";
my $SSH_USER = "powem";
my $SSH_PORT = "22";
my $sftp = Net::SFTP->new($SSH_HOST, user=>$SSH_USER,
password=>$SSH_PWD, debug=>1,
ssh_args=> [protocol=>2, port=>$SSH_PORT,
use_pty=>0]);
}
Thanks.
mp
--
'cat' is not recognized as an internal or external command,
operable program or batch file.
Michael Powe Guest
-
SFTP with CS3?
Anyone out there get Contribute CS3 to make an SFTP connection? It's still telling me that it can't verify my connection information. Permissions... -
Help with Net::SFTP when sftp on unix works.
Running on AIX, the unix sftp will connect to my site just fine, but the Net::SFTP perl modules hangs at one point. Here are the logs for the... -
Net::SFTP
Hi, Can you cd into a sub directory using Net::SFTP? I want to get a file out of home/transfers. my $sftp =... -
Net::SFTP problems
I'm trying to get Net::SFTP working and I've spent several hours with the CPAN shell and ran into a few walls including couple of Math modules... -
cwd with Net::SFTP
There is an option to use 'cwd' with the Net::FTP. How can I perform this action with the SFTP (I didn't find it in the info pages of Net::SFTP)? ... -
Sisyphus #2
Re: Net::SFTP on Windows
"Michael Powe" <michael+gnus@trollope.org> wrote in message
news:uvf7kqw9j.fsf@trollope.org...OpenSSH_3.9p1> I can't get this to work on windows (XP). Can someone help me out?
>
> PDXPOWEM01: Reading configuration data /.ssh/config
> PDXPOWEM01: Reading configuration data /etc/ssh_config
> PDXPOWEM01: Connecting to ctc.homelinux.net, port 22.
> PDXPOWEM01: Remote protocol version 2.0, remote software versionC:/Perl/site/lib/Net/SSH/Perl.pm line 214.> PDXPOWEM01: Net::SSH::Perl Version 1.25, protocol version 2.0.
> PDXPOWEM01: No compat match: OpenSSH_3.9p1.
> Your vendor has not defined Fcntl macro F_SETFL, used atI think this happens because Net::SFTP calls Net::SSH::Perl. I would try>
amending Net::SFTP so that it calls Net::SSH::W32Perl instead.
Cheers,
Rob
Sisyphus Guest



Reply With Quote

