Ubuntu 26.04

FTP : Vsftpd Over SSL/TLS2026/06/01

 

Configure Vsftpd to use SSL/TLS.

[1]

In this example, we will proceed by creating a self-signed certificate, as shown in the example at the link provided.

[2] Configure Vsftpd.
root@www:~#
vi /etc/vsftpd.conf
# line 150 : change like follows
rsa_cert_file=/etc/ssl/private/server.crt
rsa_private_key_file=/etc/ssl/private/server.key
ssl_enable=YES
ssl_ciphers=HIGH
force_local_data_ssl=YES
force_local_logins_ssl=YES 

root@www:~#
systemctl restart vsftpd

FTP Client : Ubuntu

 

Configure FTP Client to use FTPS connection.

[3] Install FTP Client on Ubuntu and configure like follows.
ubuntu@client:~$
vi ~/.lftprc
# create new
set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no

ubuntu@client:~$
lftp -u ubuntu www.srv.world

Password:
lftp ubuntu@www.srv.world:~>

FTP Client : Windows

[4] For example of FileZilla on Windows, Open [File] - [Site Manager].
[5] Input connection information like follows, and for encryption field, select [Use explicit FTP over TLS if available].
[6] If you set self-signed certificate, following warning is shown, it's no problem. Go next.
[7] If settings are OK, it's possible to connect to FTP server with FTPS like follows.
Matched Content