curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using libcurl to send shell commands through SSH?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 27 Jun 2018 09:25:16 +0200

On Wed, Jun 27, 2018 at 08:36:07AM +0200, Daniel Stenberg wrote:
> On Tue, 26 Jun 2018, Martin Galvan wrote:
>
> >I was wondering if there's a facility to open an SSH connection and send
> >shell commands using the libcurl API itself rather than falling back to
> >libssh/2's API.
>
> There isn't and there isn't likely to ever be one, IMHO. libcurl is for
> "transfers" and its API is designed and targeted for that. Adding extra
> stuff to issue SSH commands and everything that would entail and require to
> offer a decent API, I think would mean going outside of what our "mission"
> is about.

<cough> telnet <cough>

Actually, removing telnet support altogether might be reasonable in the next
major curl version bump.

Dan
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-06-27