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?
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-10-11