Hello
I’m trying FTP upload from curl to server for big files.
I have vsftpd server and can upload files by FTP (no security).
I try with SSL certificate, and on ubuntu machine, no problem, because I can use --ftp-ssl-control.
But on wp76xx (release 13.3), I can’t use --ftp-ssl-control because not exist?
I use config file which have username, certificate, url.
root@swi-mdm9x28-wp:~# curl --config ftp.conf --ftp-ssl-control
* Rebuilt URL to: ftp://XXX.XXX.XXX.XXX/
* Trying XXX.XXX.XXX.XXX...
* TCP_NODELAY set
* Connected to XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX) port 21 (#0)
< 220 Welcome
> AUTH SSL
< 504 Command not implemented for that parameter
> AUTH TLS
< 504 Command not implemented for that parameter
* Closing connection 0
curl: (64) Requested SSL level failed
This means I cannot use --ftp-ssl-control? Curl --help say it exists.
Curl version is:
curl 7.61.0 (arm-poky-linux-gnueabi) libcurl/7.61.0 OpenSSL/1.0.2p zlib/1.2.11
Release-Date: 2018-07-11
Protocols: file ftp ftps http https
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy
If I can’t use --ftp-ssl-control, what other can I use?
Any advice, thank you
your server seems cannot support “AUTH SSL” and “AUTH TLS”
My server support AUTH SSL and AUTH TLS. When I try with another client I can connect but not on wp76xx.
listen=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=NO
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
rsa_cert_file=/etc/ssl/certs/key.pem
rsa_private_key_file=/etc/ssl/private/key.key
ssl_enable=YES
allow_anon_ssl=NO
force_anon_data_ssl=YES
force_anon_logins_ssl=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=YES
ssl_ciphers=HIGH
debug_ssl=YES
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=65535
allow_writeable_chroot=YES
user_sub_token=$USER
local_root=/home/$USER/upload/
This is my server config
then what is the meaning of " 504 Command not implemented for that parameter" from your server?
This is my question.
When I curl from other Ubuntu client, I don’t have problem.
I think this is target problem, wp76xx yocto.
Maybe Curl on yocto not implemented curl properly?
I don’t want to rebuild yocto but maybe I have to. Unless you have advice?
then did your Ubuntu client send AUTH SSL and AUTH TLS?
What is the curl version in your ubuntu?
Is there improvement to enable the following setting?
ssl_sslv2=NO
ssl_sslv3
You might give a trial on FW R17 and see if there is any improvement:
root@swi-mdm9x28-wp:~# curl --version
curl 7.69.1 (arm-poky-linux-gnueabi) libcurl/7.69.1 OpenSSL/1.1.1n zlib/1.2.11
Release-Date: 2020-03-11
Protocols: file ftp ftps http https
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM SSL TLS-SRP UnixSockets
root@swi-mdm9x28-wp:~# legato version
21.05.2.rc2_7f59219499ecf02274c4ac7575e4f8c5
root@swi-mdm9x28-wp:~# cm info
Device: WP7605
IMEI: 353532100012345
IMEISV: 12
FSN: 2A917285012345
Firmware Version: SWI9X07Y_02.37.06.05 b15b59 jenkins 2022/09/27 07:54:33
Bootloader Version: SWI9X07Y_02.37.06.05 b15b59 jenkins 2022/09/27 07:54:33
MCU Version:
PRI Part Number (PN): 9908705
PRI Revision: 002.010
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.128_000
SKU: 1104208
Last Reset Cause: Power Down
Resets Count: Expected: 2 Unexpected: 0
But please note that after upgrading to FW R17, it cannot downgrade to older firmware version.
Lastly, does it work for using --ftp-ssl?
https://stackoverflow.com/questions/23613329/curl-secure-ftp-access-ftp-ssl-control-works-but-ftp-ssl-doesnt