How to install an FTP server on Ubuntu?

  1. Open up a terminal window on your Ubuntu machine. You can do this by clicking the “Activities” button located at the top left corner of the screen and typing “terminal” into the search bar that appears.

  2. Update the package index and upgrade the system using the following commands:

1
2
3
sudo apt-get update

sudo apt-get upgrade
  1. Install the FTP server software. We will use the popular vsftpd package. You can do this by running the command:
1
sudo apt-get install vsftpd
  1. Once the installation is completed, open the vsftpd.conf file using your favourite text editor. Here we will use nano:
1
sudo nano /etc/vsftpd.conf
  1. Make changes to the configuration file to suit your needs. Here, we will only make two changes.

First, uncomment the line write_enable=YES to enable uploading files.

Second, you may set the anonymous_enable setting to NO allowing only authenticated user to use the FTP server.

1
2
3
write_enable=YES

anonymous_enable=NO
  1. Save and close the configuration file.

  2. Restart the FTP server for the changes to take effect by running the following command:

1
sudo service vsftpd restart
  1. Finally, test the FTP server by connecting to it using an FTP client such as FileZilla, WinSCP or Cyberduck.

That’s it! You now have an FTP server installed on Ubuntu and ready to use.