How to use cURL with multiplexing with sftp -


i want file structure (listing only) on sftp server. i'm using curl bash command multiple calls.

in order avoid multiple connections, i'd use openssh multiplexing. followed instructions on https://en.wikibooks.org/wiki/openssh/cookbook/multiplexing though using curl file list not work.

on other hand, "standard" ssh connection use multiplexing.

questions:

  1. is there way use multiplexing curl?
  2. if not, there linux command line tool file listing?

  1. not sftp, no. ssh protocol (and libssh2 curl using) allow multiplexing fine curl has not been adapted take advantage of this, doing multiple requests same host still use separate connections.

  2. the sftp command openssh used like: echo ls | sftp example.com:dir/


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -