How to Install FTP on Ubuntu 18.04?

FTP stands for File Transfer Protocol used to share files/folders from one server to another server. It uses the Client/Server model. Once FTP Client sends the request on FTP Server, the FTP daemon of the server will set a connection between the two systems. You can access the files hosted on your server with the help of FTP. It is always recommended to set Authentication for FTP instead of Anonymous. Here, are the steps to install FTP on Ubuntu 18.04

  1. Install the FTP using the below command.

    # sudo apt-get install vsftpd
  2. We will set local_enable=YES to allow local users to log in to the FTP server. By Default, it should be up.

    # sudo nano /etc/vsftpd.conf


  3. To provide write permission, we will uncomment the below line.

    # write_enable=YES
  4. Make the below changes for the chroot settings.

    user_sub_token=$USER
    chroot_local_user=YES
    chroot_list_enable=YES



  5. Inside # (default follows), Set the default “chroot” settings. If any of these lines don't exist, you can add it as per below. 

    chroot_list_file=/etc/vsftpd.chroot_list
    local_root=/home/$USER/Public_html
    allow_writeable_chroot=YES



  6. Activate the “-R” option by uncommenting the below line.

    # ls_recurse_enable=YES


  7. Save and Exit the vsftpd.conf file.

  8. Now, we will add the users to the file vsftpd.chroot_list to access their Home directories within the server. Here, we have created a test user and added it in vsftpd.chroot_list file. Please note that only users added in the vsftpd.chroot_list will be able to connect this server.

    # sudo nano /etc/vsftpd.chroot_list
  9. Restart the vsftpd

    # sudo systemctl restart vsftpd
  10. Get the IP Address of your server with ifconfig command and access FTP with the port 21.

  11. Access the FTP using Username and Password of the same user from local FTP client like FileZila.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Can I purchase additional RAM, Disk space and Bandwidth for VPS?

Yes, you can purchase additional RAM(Our RAM Recommendation), DiskSpace, Bandwidth and vCPU...

How to add user to sudo group in a Linux VPS?

With Sudo you can provide special privileges to any user or group. In Linux, there are few...

How to install the Zabbix agent version 4.0 on Debian 9 (strech)?

Zabbix is an Open-source monitoring tool use to monitor the health of servers, networks and other...

How to Install MySQL on CentOS 7.x?

MySQL is one of the popular database management systems. For now, MySQL is no longer within...

How Do I Check Bandwidth Utilization of VPS?

Windows VPS To check/monitor usage of each Windows VPS, we have installed bandwidth meter tool...