|
Posted by Michael Powe on March 21, 2005, 9:55 pm
Please log in for more thread options
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.
|
|
Posted by Sisyphus on March 23, 2005, 9:03 pm
Please log in for more thread options
> 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 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
|
| Similar Threads | Posted | | Net::SFTP - setting binary mode on Windows | January 17, 2007, 5:55 am |
| Help with Net::SFTP when sftp on unix works. | September 21, 2004, 11:14 am |
| Net::SFTP installation | January 12, 2005, 11:35 pm |
| Net::SFTP::Attributes | October 23, 2006, 11:56 am |
| problem using Net::SFTP with pubkey | September 1, 2005, 4:29 am |
| Net::SFTP port problem | July 26, 2004, 2:18 pm |
| Net::SFTP transfer speed | December 14, 2004, 8:14 am |
| Aargh. SFTP problems | March 15, 2005, 2:35 pm |
| net::sftp connection close | May 4, 2006, 6:27 am |
| NET::SFTP - how to close connection | September 28, 2006, 7:22 am |
|