To set up an FTP server on Ubuntu 24.10, we will install and configure the vsftpd package. Follow these steps:
Step 1 : Before installing any packages, ensure your system is up-to-date. Run the following command:
Step 2 : Install the vsftpd package with the following command:
Step 3 : Once the installation is complete, check if the vsftpd service is running:
Step 4 : Edit the configuration file to enhance security:
Modify or ensure the following lines are set:
Save the file and exit the editor.
Step 5 : After making changes, restart the vsftpd service to apply the new configuration:
Step 6 : Create a dedicated user for FTP access:
Follow the prompts to set up a password and user information
Step 7 : If the UFW firewall is active, allow FTP traffic:
Step 8 : To test the FTP server, follow these steps using an SFTP client such as FileZilla:
- Open FileZilla: Launch the application.
- Add a New Site: Go to the Site Manager and create a new site.
- Enter Connection Details:
+ Host: Your server's IP address
+ Port: 21
+ Protocol: FTP
+ Encryption: Require explicit FTP over TLS
+ Logon Type: Normal
+ User: ftpuser
+ Password: The password you created earlier
Step 9 : Save the settings and click Connect to establish an FTP connection.
Congratulations! You have successfully set up and configured the vsftpd FTP server on Ubuntu 24.10.