Re: Transfer files
On Fri, 12 Mar 2010, 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? Well, you can send a command from A to server B: scp file rem...@c:file but other than so, SSH has no particular provisions for third party transfers the way you describe. -- / daniel.haxx.se ___ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Re: Transfer files
Hi Daniel, Daniel Stenberg schrieb: Well, you can send a command from A to server B: scp file rem...@c:file but other than so, SSH has no particular provisions for third party transfers the way you describe. Good idea! Quite simple. Thanks! Marcus ___ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Re: Transfer files
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