in reply to Re: SSH2 scp_get problem
in thread SSH2 scp_get problem

I tried both a scp and a sftp session and they both work without any problems.
Thanks,
Radu

Replies are listed 'Best First'.
Re^3: SSH2 scp_get problem
by RaduH (Scribe) on Oct 17, 2007 at 20:51 UTC
    Ah, one more thing... the transfer is between two accounts on the same Linux machine so there's traffic up and down the network software stack but no real network traffic between two hosts... in case it makes a difference.
    Radu
      And another detail.. it seems my latest runs all terminate - the code doesn't just hang there forever, but it only copies a part of the 15MB file.
      Well, that makes it a bit special indeed :)

      Can you try install and run Net::SCP too for this same transfer ? Just to make another step to try to localize the problem.

      Net::SSH2 seems to be far from mature (version 0.10), so it is definitely a suspect; however, trying Net::SCP (which is at version 0.07 :) ) might be an easier test than mucking with the Net::SSH2 code already.

      A totally different - but still possible - approach would be to wrap a system() call around the command line scp that was successfull.

      Hope that helps.
        Yes, I'll look into that too and I'll also try Net::SFTP. Sorry about the mess with my posts ... I just learn my way around the website and didn't know how to "read" (make that "interpret") the number of replies.
        I'll try and then post my findings, maybe others will benefit from my experience.
        Radu