curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Libcurl with Libssh and port forwarding.

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 8 Feb 2024 16:47:47 +0100 (CET)

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
Received on 2024-02-08