curlopenwrt

Automaticly upload to FTPS


How can I upload a file on an OpenWRT router to a place using FTPES?

I googled curl, because it's small enough to install:

opkg update
opkg install curl

and can handle FTPES connections: http://curl.haxx.se/docs/comparison-table.html

Ok. But heres the problem: i just can't guess out, how could i upload a file.

Can someone point me to a working, good howto?


Solution

  • I sniffed it with Wireshark and this one uses FTPS:

    curl --ftp-ssl -T "FILE.TXT" -k -u "MYUSER@MYDOMAIN.COM:MYPASSWORD" "ftp://MYDOMAIN.COM"