in reply to LIBSSH2_ERROR_SCP_PROTOCOL error when using scp_put method from Net::SSH2

As it says, you have a permission problem, you can't write /blah/blah.tar.gz.  Maybe try a different path, i.e. one where you can write... in particular, not in the root directory /.

Replies are listed 'Best First'.
Re^2: LIBSSH2_ERROR_SCP_PROTOCOL error when using scp_put method from Net::SSH2
by shaileshk (Initiate) on Nov 30, 2009 at 10:30 UTC
    Thanks for your prompt reply. I have now transferred files to the /tmp directory on the destination server, then used the sudo command to copy the files into the required directory. Work done !! Thanks again.