I work under in a docker image, under a VPS! i have install vsftp in my ubuntu 20.04! at the beginning I tested ftp 127.0.0.1 in the command line and everything goes well I created a user and I tested the file transfer. after adding the ssl certificate and I wanted to connect by filezilla or by browser it does not work and the server does not have the ip address 127.0.0.1! how can I fix this please!
here is the output of filezilla :
Response: 220 (vsFTPd 3.0.3)
Command: AUTH TLS
Answer: 530 Please login with USER and PASS.
Command: AUTH SSL
Answer: 530 Please login with USER and PASS.
Status: Unsecured server, it does not support FTP over TLS.
Command: USER rayen
Answer: 530 Permission denied.
there is nothings in the file log => it's empty /var/log/vsftpd.log
/etc/vsftpd.conf : listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
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
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
user_sub_token=$USER
local_root=/home/$USER/ftp
pasv_min_port=30000
pasv_max_port=31000
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO
i followed this tuto :
You need to issue a certificate (I suggest using Let's Encrypt for this) After issuing a certificate, set these variables on /etc/vsftpd.conf file
To connect using Filezilla, remember to select the option Use explicit FTP over TLS if available.