Subject: Re: Transfer files

Re: Transfer files

From: Peter Stuge <peter_at_stuge.se>
Date: Sat, 20 Mar 2010 03:33:22 +0100

double wrote:
> Is there an easy way to transfer a file from server "B" to server
> "C", if libssh2 runs on server "A"? To login on server "B" and put
> a file to server "C" via sftp?

You can use direct-tcpip to tunnel a second SSH connection between B
and C back to A. Use SFTP within the tunneled connection. This way
you have API control in your application of everything that goes on,
but pumping the data requires more work by you. See the direct-tcpip
example and feel free to ask any questions.

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