in reply to Re: ssh2 open file problem
in thread ssh2 scp problem

Sorry about the code, I forgot to take out the opendir. I just updated it. That was part of my second question in another msg. Anyway, I tried the code that you asked and got the same thing. Here is the error msg:
connecting to ftp.realtimeclaims.com... auth to ftp.realtimeclaims.com... Auth OK: 4 scp get libssh2_scp_recv(ss->session, path, &st) -> 0x0 -22LIBSSH2_ERROR_CHANNEL_REQUEST_DENIEDUnable to complete request for +channel-pr ocess-startup at sftp2.pl line 24. Net::SSH2::DESTROY object 0x183532c

thanks for any help (again).

Replies are listed 'Best First'.
Re^3: ssh2 open file problem
by afresh1 (Hermit) on Oct 31, 2008 at 18:43 UTC
      No, I did ask someone if scp/sftp had to be enable at the remote site and was told no since it runs on SSH. About an hour ago someone told me yes, it had to be enabled. So I'm trying to figure out if that is the case or not. It sure would explain why I seem to be the only one who can't get sftp or scp to work correctly. Do you know?

        For SFTP to work, it has to be enabled on the SSH server, for SCP to work, you should just need ssh enabled. However, you do need permissions to the file and to all the directories between and possibly things that I am not thinking of. Testing with another client will help narrow down where the problem is.

        l8rZ,
        --
        andrew