On Wed, Jun 7, 2023, at 13:35, Vlad Meșco wrote:
> On Wed, Jun 07, 2023 at 12:19:19PM -0600, Abel Abraham Camarillo Ojeda wrote:
>> You can also use plain ssh with something like:
>> 
>> program | ssh -n user@host 'cat > /route/to/destfile'
>
> I agree with Abel, that's the best choice if you can ssh into the box

I cannot, unfortunately. I don't control the remote host and can only
use sftp.

> If the target only allows SFTP and you want curl, I've attached my local
> patch.
>
> Theo made a point about not compiling everything into everything else,
> so do prefer using ssh and sftp over curl-with-all-protocols.

Thanks, noted about the risks.

Allan

Reply via email to