On Thu, 8 Feb 2024, Ali Nasir via curl-library wrote:

3. Problem is that the libssh does actually make a port forward. Thus further actions the tunnel need to be done via its channel_write amd channel_read operations.

Question: how do i achieve thia using libcurl?

Using just libcurl, you can't.

libcurl does Internet transfers and while it supports SCP and SFTP fine, such transfers do not magically offer unrelated SSH protocol powers like port forwarding. Typcially you can first setup a SSH connection that includes port forwarding, *then* do a transfer over that port forward using libcurl.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to