Net::SFTP on Windows

Ask a Question related to PERL Modules, Design and Development.

  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. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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 =...
    4. 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...
    5. 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)? ...
  3. #2

    Default Re: Net::SFTP on Windows


    "Michael Powe" <michael+gnus@trollope.org> wrote in message
    news:uvf7kqw9j.fsf@trollope.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

Posting Permissions

  • You may not post new threads
  • You may 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