Dedicated Server: Installation of a FTP server
This guide was created with the following products:
(Details may vary with products from different providers but the main concepts remain the same)
Introduction
The FTP (File Transfer Protocol) is a network protocol used to transfer files over a TCP/IP network. The protocol was developed to allow the easy exchange of files between systems. With the FileZilla Server it is possible to set up such a FTP server on a Linux operating system. The FileZilla Server is easy to install and configure, and offers numerous features such as the ability to set up user accounts, manage access rights and transfer files. In this guide, we will explore the process of installing and configuring the FileZilla Server service on a Linux server.
How do I install the FTP server to add a user?
To add a FTP user, you first need to install the FTP server. To do this, connect to the server once via SSH(Putty).
To install the FTP server now, enter the following apt-get install proftpd. You have to confirm the request with a Y and enter:
Now we still have to adjust the config. For this we enter the following nano /etc/proftpd/proftpd.conf and confirm. Afterwards the config file is opened in the Nanoeditor:
The following entries must be added:
Now the FTP server must be restarted so that the changes are applied. This can be done with the following command: service proftpd restart
How do I add an FTP user?
To create the new FTP user, we first have to create an FTP group. We do this with the command addgroup ftpuser. This will look like this:
Now we can add our first FTP user with the commands: adduser benutzerftp -shell /bin/false -home /var/www and then adduser benutzerftp ftpuser.
Now we are asked to set a password:
Then we have to confirm that the entries are correct:
The last step is to assign the new user to the group via adduser benutzerftp ftpuser :
Now we can connect with our set information: