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

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

From: Daniel Stenberg <daniel_at_haxx.se>
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?

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-10-11