Subject: Re: Transfering files

Re: Transfering files

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 3 Apr 2013 20:50:27 +0200

Paul Radaz wrote:
> Looks like a this:
> LIBSSH2_SFTP *sftp_session;
> sftp_session = libssh2_sftp_init(C_server->session);
>
> C_server->session is second LIBSSH2_SESSION for C_server (its connected,
> handshaked and authentificated) - yes, I am using "data pump function"
> between sockets like in direct_tcpip.c example. Works fine, I can download
> files by scp or execute commands

OK! That sounds good.

> but my problem is if I want to create sftp session for this private
> C_server.

Well, please enable libssh2 trace output with maximum debug level and
send the output from your program when it fails to create the SFTP
channel. Also send the source code for your program.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-04-03