mmm

tecnicamente potresti costruirti il tuo client SFTP ma fai veramente prima, come ti ha detto fabio, ad usare CURL