I want to get the file structure (listing only) on an sFTP server. I'm currently using the cURL bash command with multiple calls.
In order to avoid multiple connections, I'd like to use openssh multiplexing. I followed the instructions on https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing though using cURL to get the file list this does not work.
On the other hand, "standard" ssh connection do use the multiplexing.
Questions:
- is there a way to use multiplexing with cURL?
- if not, is there another linux command line tool to get the file listing?