Subject: Re: libssh2_sftp_init ... I don't get it.

Re: libssh2_sftp_init ... I don't get it.

From: Daniel Stenberg <>
Date: Mon, 11 Oct 2010 19:39:57 +0200 (CEST)

On Mon, 11 Oct 2010, may nothing wrote:

> I'm trying to get this code to run but libssh2_sftp_init always fails, and I
> don't have the any idea why. Could you help me

First, a minor clue could be extracted by checking the error code that was
stored when it returns NULL.

The even better way is to use libssh2_trace() on a debug-enabled libssh2 and
check all the gory details.

Are you sure your target SSH server even supports/allows SFTP?

Received on 2010-10-11