开发者

Automaticly upload to FTPS

开发者 https://www.devze.com 2023-02-03 13:16 出处:网络
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:

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?


i sniffed it with wireshark:

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

and this one uses ftps! :P it works perfectly! solved :)

thank you!


2 seconds of googling (ftpes curl upload) brought up this:

http://www.lewisroberts.com/2010/08/06/scripting-ftpes-explicit-tlsssl-with-curl/
0

精彩评论

暂无评论...
验证码 换一张
取 消