

Now for the changes to come into effect, restart the FTP service: Save the file and exit the nano text editor. Scroll through the file and find the entry write_enable=NO and change the value to YES, as shown in the picture below. To make the changes, open the configuration file using the nano command: If you want to let the authenticated users upload files, you should make changes to the nf file. Additional Configurations Authenticate FTP Users You can log in to the FTP server using the user account you created earlier (step 3). Open a new terminal window and enter the following command:īe sure to change the IP address with your server's IP address. Now that everything is set in place, you can connect to the FTP server. Sudo ufw allow 21/tcp Step 5: connecting to the FTP server The FTP ports are port 20 and port 21, which can be opened by using the following command: The firewall will block FTP traffic as a security measure, but the FTP ports are needed for vsftpd to function properly. Ubuntu 18.04 comes with the UFW firewall and is usually active by default. When prompted to enter the user account's password, enter it and confirm it. We will be creating a user named sushi (be sure to change the name of the user to something relevant to you): A new user is created as a security measure to limit server access to all other system users. To use vsftpd, we will create a dedicated FTP user.

Sudo cp /etc/nf /etc/nf_default Step 3: Create an FTP User Sudo systemctl enable vsftpd Step 2: Make a backup of the configuration files.īefore we will go-ahead to change some configurations, it's best to take a backup of the default configuration files. Enter the following commands to start the service and for the service to start during the boot-up of the server. Once the vsftpd is installed and set up on your server, it will not start automatically. When prompted to continue, don’t forget to press y and Enter. This is a common open-source FTP utility that is used in Ubuntu.
SETUP UBUNTU FTP SERVER INSTALL
Once the system is updated, we can go ahead and install vsftpd. Start by updating your repository by entering the following code:
