Hi Sandra,
Sorry - missed your reply. That's the same error as I was getting. This patch fixes the problem for me - and I think it will do the same for you.

There's already a bug report filed about this. That bug report also specifies a second patch to SSH2.xs which I haven't applied, as I haven't yet struck a need for it - and there seems to be some doubt as to what is the correct fix.

I'll /msg you (should be later today) when I've uploaded 0.33 ppm packages that include the above patch. Alternatively, you can just alter SSH2.pm in accordance with that patch - and that should work fine.

Btw, I did find that sftp was quite capable of uploading these files that scp couldn't, though it was much slower.

Cheers,
Rob

In reply to Re^3: Unable to transfer file with scp_put using Net::SSH2 by syphilis
in thread Unable to transfer file with scp_put using Net::SSH2 by tsandras

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.