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:
- is there way use multiplexing curl?
- if not, there linux command line tool file listing?
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.
the sftp command openssh used like:
echo ls | sftp example.com:dir/
Comments
Post a Comment