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.
Update the package index and upgrade the system using the following commands:
1 | sudo apt-get update |
- 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 |
- Once the installation is completed, open the
vsftpd.conf
file using your favourite text editor. Here we will usenano
:
1 | sudo nano /etc/vsftpd.conf |
- 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 | write_enable=YES |
Save and close the configuration file.
Restart the FTP server for the changes to take effect by running the following command:
1 | sudo service vsftpd restart |
- 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.