Search The Hostwinds Guides Knowledge Base

Install FTP Server on Ubuntu

Share This Article [TheChamp-Sharing]

Installing File Transfer Protocol (FTP) on Ubuntu is a common task that allows you to use FTP for moving files between computers. FTP works on the client-server model. The server component is the FTP Daemon which is always listening for FTP requests on the assinged port (port 21 by default). 

The first step is to install an FTP daemon, we recommend vsftpd.

sudo apt install vsftpd

Enable Uploading via FTP

By default, FTP users can downlaod files, but cannot upload via FTP. To allow users to upload files, edit the file /etc/vsftpd.conf:


Next, restart vsftpd:

sudo systemctl restart vsftpd.service

Now, when users log in using FTP, they will start in their home directory
(e.g. /home/username) and they can download and upload files to this directory, as well as create and delete directories.

If you want users to be restricted to their home directories, then edit the same file as before (/etc/vsftpd.conf), uncommending the line:


Related Articles