in reply to Net::SFTP issue -- uninitialized value in Net/SSH/Perl

you should enclose your code in code tags:  <code> ... </code> or  <c> ... </c>.

as it stands, it looks like part of the line that appears as "ssh_args => port => $port" is being interpreted as markup.

Replies are listed 'Best First'.
Re^2: Net::SFTP issue -- uninitialized value in Net/SSH/Perl
by Anonymous Monk on Dec 03, 2007 at 13:51 UTC
    Sorry for the formatting issues. First time I have posted here.
      A bit of additional information. I ran the SFTP test script against a host that I know it can connect to. In that case the tail end of the output looks like:
         snapple: Requesting channel_open for channel 1.
         snapple: Sending subsystem: sftp
         snapple: Requesting service subsystem on channel 1.
         snapple: channel 1: open confirm rwindow 0 rmax 32768
         snapple: sftp: Sending SSH2_FXP_INIT
         snapple: sftp: Remote version: 3

      However, with the problem connection I get the following:
         snapple: Requesting channel_open for channel 1.
         snapple: channel 0: rcvd eof
         snapple: channel 0: output open -> drain
         snapple: channel 0: rcvd close
         snapple: channel 0: input open -> closed
         snapple: channel 0: close_read
         snapple: channel 0: obuf empty
         snapple: channel 0: output drain -> closed
         snapple: channel 0: close_write
         snapple: channel 0: send close
         snapple: channel 0: full closed
         snapple: sftp: Sending SSH2_FXP_INIT
         Use of uninitialized value in numeric gt (>) at D:/Perl/site/lib/Net/SSH/Perl/Channel.pm line 82.
         Use of uninitialized value in pack at D:/Perl/site/lib/Net/SSH/Perl/Buffer.pm line 105.

      Not too sure what that suggests but is it possible that the channel 1 open is somehow interfering with channel 0?

      Thanks.

      dcoleman

        Did you find a solution? We have the same issue, and switching to use native binaries took care of it, but would prefer to use the full perl module.
        You are not passing the correct value to ssh_args. From the documentation:
        ssh_args Specifies a reference to a list or hash of named arguments [...]
        I am having the same issue. Was there ever a solution found? HiUCImOn@Yahoo.com
      that is why preview is mandatory, so thats no excuse