On Wed, Jun 7, 2023 at 11:48 AM Allan Streib <astr...@fastmail.fm> wrote:

> On Wed, Jun 7, 2023, at 12:37, Vlad Meșco wrote:
>
> > Curl is built without sftp or scp support; my guess is because "why
> > would you?"
>
> I would just use the sftp utility itself, except it doesn't allow
> reading the standard input for the data to transfer. curl does,
> thus my attempt to use it in this scenario.
>
> > You can do what I did: grab the ports tree, update net/curl/Makefile to
> > configure --with-libssh (and add libssh as a dependency), make package
> > and make install.
>
> Yes, that's fine, I can do that. I guess I assumed there might be some
> other (breaking) reason that it was disabled. Thanks!
>
> Allan
>
>
You can also use plain ssh with something like:

program | ssh -n user@host 'cat > /route/to/destfile'

Reply via email to