Install an FTP server with vsFTPd

by InstallVPS


Posted on January 30, 2019 at 16:00 PM


vsFTPd installation in just one click.

Contents

Installation process

Here are all the actions we will perform on your server:

  1. Update package versions from repositories.
  2. Update all installed packages to the latest version.
  3. Install and configure all the packages

Packages Installed

The following packages will be installed on your server:

  1. vsFTPd

Configuration

The following configuration changes will be performed on your server.

  • Configure the ftp server, you can find the configuration in /etc/vsftpd.conf
  • Create self signed ssl certificate (/etc/ssl/certs/vsftpd.crt and /etc/ssl/private/vsftpd.key)
  • Create an ftp user without shell access
  • Add /bin/false to /etc/shells so the ftp user does not have ssh access
  • Create ftp folder for the ftp user in /home/[ftp-username]/ftp
  • Add script to create new users: /usr/local/bin/vsftpd-add-user.sh

Versions Installed

Depending on the operating system you choose, a different version of the packages will be installed.

You can check the package version for each operating system below.

Debian 8

Installation from repositories without external packages.

Versions installed:

  • vsFTPd 3.0.2

Debian 9

Installation from repositories without external packages.

Versions installed:

  • vsFTPd 3.0.3

Ubuntu 16.04

Installation from repositories without external packages.

Versions installed:

  • vsFTPd 3.0.3

Ubuntu 18.04

Installation from repositories without external packages.

Versions installed:

  • vsFTPd 3.0.3

After Installation

Your server is fully installed. You can now check your installation or perform other actions in your server.

Testing Installation

Once the installation is completed, you can test everything works connecting to your server with any ftp client that support SSL.

ftp://[yourserverip]

The username and password will be provided once the installation is completed. You can also find them in /root/installvps/.

How to create a new FTP user

If you want to create a new FTP user, launch the following commands changing "ftp-username-here" your the name of your ftp user:

# /usr/local/bin/vsftpd-add-user.sh ftp-username-here Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully

You will be prompted for the password and once the password is set up, the user will be ready to start uploading some files.

Configure Filezilla client

In order to connect to the FTP server using Filezilla, you need to activate SSL encryption. To do so, you will have to go Site Managers and configure the following options.

Protocol: FTP - File Transfer Protocol Encryption: Require Explicit FTP over TLS Logon Type: Ask for password