Professional Web Applications Themes

Help with Net::SFTP when sftp on unix works. - PERL Modules

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 unix sftp: Connecting to #.#.#.#... OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003 debug1: Reading configuration data /usr/local/etc/ssh_config debug1: Connecting to #.#.#.#[#.#.#.#] port 22. debug1: Connection established. debug1: identity file /u/home/#####/.ssh/id_rsa type -1 debug1: identity file /u/home/#####/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version 1.29 sshlib: MOVEit DMZ SSH 3.1.0.0 debug1: no match: 1.29 sshlib: MOVEit DMZ SSH 3.1.0.0 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local ...

  1. #1

    Default 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 unix sftp:
    Connecting to #.#.#.#...
    OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003
    debug1: Reading configuration data /usr/local/etc/ssh_config
    debug1: Connecting to #.#.#.#[#.#.#.#] port 22.
    debug1: Connection established.
    debug1: identity file /u/home/#####/.ssh/id_rsa type -1
    debug1: identity file /u/home/#####/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version 1.29 sshlib:
    MOVEit DMZ SSH 3.1.0.0
    debug1: no match: 1.29 sshlib: MOVEit DMZ SSH 3.1.0.0
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_3.7p1
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: sending SSH2_MSG_KEXDH_INIT
    debug1: expecting SSH2_MSG_KEXDH_REPLY
    debug1: Host '#.#.#.#' is known and matches the DSA host key.
    debug1: Found key in /u/home/#####/.ssh/known_hosts2:1
    debug1: ssh_dss_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey,password
    debug1: Next authentication method: publickey
    debug1: Trying private key: /u/home/###/.ssh/id_rsa
    debug1: Trying private key: /u/home/####/.ssh/id_dsa
    debug1: Next authentication method: password
    ############'s password:
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug1: Entering interactive session.
    debug1: Sending subsystem: sftp
    sftp> ls



    Here are the logs for the Net::SFTP:
    Starting
    marge: Reading configuration data /u/home/#####/.ssh/config
    marge: Reading configuration data /etc/ssh_config
    marge: Connecting to #.#.#.#, port 22.
    marge: Remote protocol version 2.0, remote software version 1.29 sshlib:
    MOVEit DMZ SSH 3.1.0.0
    marge: Net::SSH::Perl Version 1.25, protocol version 2.0.
    ..arge: No compat match: 1.29 sshlib: MOVEit DMZ SSH 3.1.0.0
    marge: Connection established.
    marge: Sent key-exchange init (KEXINIT), wait response.
    marge: Algorithms, c->s: 3des-cbc hmac-sha1 none
    marge: Algorithms, s->c: 3des-cbc hmac-sha1 none
    marge: Entering Diffie-Hellman Group 1 key exchange.
    marge: Sent DH public key, waiting for reply.
    marge: Received host key, type 'ssh-dss'.
    marge: Host '#.#.#.#' is known and matches the host key.
    marge: Computing shared secret key.
    marge: Verifying server signature.
    marge: Waiting for NEWKEYS message.
    marge: Enabling incoming encryption/MAC/compression.
    marge: Send NEWKEYS, enable outgoing encryption/MAC/compression.
    marge: Sending request for user-authentication service.
    marge: Service accepted: ssh-userauth.
    marge: Trying empty user-authentication request.
    marge: Authentication methods that can continue: publickey,password.
    marge: Next method to try is publickey.
    marge: Next method to try is password.
    marge: Trying password authentication.
    marge: Login completed, opening dummy shell channel.
    marge: channel 0: new [client-session]
    marge: Requesting channel_open for channel 0.
    marge: channel 0: open confirm rwindow 130048 rmax 130048
    marge: Got channel open confirmation, requesting shell.
    marge: Requesting service shell on channel 0.
    marge: channel 1: new [client-session]
    marge: Requesting channel_open for channel 1.
    marge: Sending subsystem: sftp
    marge: Requesting service subsystem on channel 1.
    marge: channel 1: open confirm rwindow 130048 rmax 130048
    marge: sftp: Sending SSH2_FXP_INIT
    HANGS HERE

    program
    use Net::SFTP;

    print "Starting\n";

    my %args = (user => "###", password => "####", debug => "1", ssh_args =>
    [port => 22]
    );
    my $Session = Net::SFTP->new("#.#.#.#", %args);

    print $Session->ls();

    Thanks!



    Ree-Yees Guest

  2. #2

    Default Re: Help with Net::SFTP when sftp on unix works.

    Ree-Yees <rr.com> wrote:
    > Running on AIX, the unix sftp will connect to my site just fine, but the
    > Net::SFTP perl modules hangs at one point.
    Yeah. I've seen that too, when talking to certain types of server. It's
    consistent (ie works or hangs) for a given server, though. I thought I'd
    found the problem and wrote to the author but wasn't given the courtesy
    of either a reply or a bounce. Oh, and my empirical "fix" moved the
    goalposts but it still hung... sometimes.

    In the end I wrote a Net::SFTP::Wrapper that emulated enough of Net::SFTP
    for my requirements by using Expect on "sftp" itself. Ugly, but you're
    welcome to it if it's any use to you.

    Chris
    --
    I don't need "usenet" when emailing to roaima.co.uk
    chris-usenet@roaima.co.uk Guest

Similar Threads

  1. SFTP with CS3?
    By pwatvu in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: June 12th, 09:13 AM
  2. Net::SFTP on Windows
    By Michael Powe in forum PERL Modules
    Replies: 1
    Last Post: March 23rd, 09:03 AM
  3. mget in net::sftp?
    By F. J. Kelley in forum PERL Modules
    Replies: 0
    Last Post: March 1st, 09:37 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