Ubuntu 26.04

FTP : ProFTPD Over SSL/TLS2026/06/01

 

Configure ProFTPD 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 ProFTPD.
root@www:~#
apt -y install proftpd-mod-crypto
root@www:~#
vi /etc/proftpd/modules.conf
# line 26 : uncomment
LoadModule mod_tls.c 

root@www:~#
vi /etc/proftpd/proftpd.conf
# line 143 : uncomment
Include /etc/proftpd/tls.conf

root@www:~#
vi /etc/proftpd/tls.conf
# line 10-12 : uncomment and change

TLSEngine               on
TLSLog                  /var/log/proftpd/tls.log
TLSProtocol             TLSv1.3

# line 27, 28 : uncomment and specify your certificate
TLSRSACertificateFile                   /etc/ssl/private/server.crt
TLSRSACertificateKeyFile                /etc/ssl/private/server.key

root@www:~#
vi /etc/apparmor.d/proftpd
  # add to last line to allow the certificate to be read
  /etc/ssl/private/** r,
}

root@www:~#
apparmor_parser -r /etc/apparmor.d/proftpd

root@www:~#
systemctl restart proftpd

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