in reply to SSH2 scp_get problem

Does the same get transfer succeed without a hickup if you're doing it by hand, with a command-line scp ?

The answer to this question might help in understanding if it's more a network problem or indeed a Perl problem.

Replies are listed 'Best First'.
Re^2: SSH2 scp_get problem
by RaduH (Scribe) on Oct 17, 2007 at 20:30 UTC
    I tried both a scp and a sftp session and they both work without any problems.
    Thanks,
    Radu
      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.