


Once the SSL certificate is created open the vsftpd configuration file: sudo nano /etc/nfįind the rsa_cert_file and rsa_private_key_file directives, change their values to the pam file path and set the ssl_enable directive to YES: That will be valid for ten years: sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pemīoth the private key and the certificate will be saved in the same file. We will generate a 2048-bit private key and self-signed SSL certificate

If you have a domain or subdomain pointing to the FTP server’s IP address, you can quickly generate a free Let’s Encrypt You can use an existing SSL certificate signed by a trusted Certificate Authority or create a self-signed certificate. To encrypt the FTP transmissions with SSL/TLS, you’ll need to have an SSL certificate and configure the FTP server to use it. When this option is enabled, you need to explicitly specify which users can log in by adding the user names to the /etc/er_list file (one user per line). Userlist_enable = YES userlist_file = /etc/er_list userlist_deny = NO Search for the anonymous_enable and local_enable directives and verify your configuration match to lines below: We’ll allow access to the FTP server only to the local users. Start by opening the vsftpd configuration file: sudo nano /etc/nf 1. In the following sections, we will go over some important settings needed to configure a secure vsftpd installation. For all available options, visit the vsftpd documentation Most of the server settings are well documented inside the file. The vsftpd server configuration is stored in the /etc/nf file. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Tue 15:17:22 UTC 3s ago The output should show that the vsftpd service is active and running: To verify it, print the service status: sudo systemctl status vsftpd The ftp service will automatically start once the installation process is complete. To install it, execute the following commands: sudo apt update sudo apt install vsftpd The vsftpd package is available in the Ubuntu repositories. The Best Linux Graphical FTP Server Software Installing vsftpd on Ubuntu 20.04 #
