Professional Web Applications Themes

Net::SFTP on Windows - PERL Modules

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 = ...

  1. #1

    Default 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

  2. #2

    Default Re: Net::SFTP on Windows


    "Michael Powe" <michael+gnustrollope.org> wrote in message
    news:uvf7kqw9j.fsftrollope.org...
    > 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


    Sisyphus Guest

Similar Threads

  1. Can't connect via SFTP but FTP ok
    By njaeswebmaster in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: March 31st, 03:09 PM
  2. SFTP with CS3?
    By pwatvu in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: June 12th, 09:13 AM
  3. Help with Net::SFTP when sftp on unix works.
    By Ree-Yees in forum PERL Modules
    Replies: 1
    Last Post: September 21st, 07:39 PM
  4. Net::SFTP
    By April in forum PERL Modules
    Replies: 2
    Last Post: February 16th, 07:44 PM
  5. cwd with Net::SFTP
    By Inna in forum PERL Modules
    Replies: 4
    Last Post: July 24th, 11:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139