Install FTP and Create user via SSH


In this opportunity we will teach you how to install an FTP server and create a user to be able to connect through port 21 with the FTP protocol.

First of all we log into our server through SSH, as we explained earlier in “Connect via the SSH protocol” and then we follow the steps written below.

Install FTP server vsftpd

We execute the following lines in console

1- We install vsftpd

yum -y install vsftpd

2- We begin the process

/etc/rc.d/init.d/vsftpd start

3- We check that everything is fine

chkconfig vsftpd on

The vsftpd configuration file is in “/etc/vsftpd/vsftpd.conf“, you can view it using the command “view /etc/vsftpd/vsftpd.conf” and / or edit using the command “vi /etc/vsftpd/vsftpd.conf“.

Create FTP user

1- We create the user with the command

useradd <username>

2- We create the group for the user

groupadd <groupname>

3- We assign the group to the user

gpasswd -a <username> <groupname>

4- We set a password for the user

passwd <username>

Once these steps are completed, you can use your favorite FTP client, I recommend FileZilla, to transfer files.


Please enter your comment!
Please enter your name here