How to install VSFTPD on AlmaLinux 8

Installing VSFTPD

To enable FTP on your VPS, you will first need to install the VSFTPD package with the following command.

dnf install vsftpd -y

Once the installation is complete, We start the vsftpd service and enable it to start automatically at system boot.

systemctl start vsftpd
systemctl enable vsftpd


[root@my ~]# systemctl start vsftpd
[root@my ~]# systemctl enable vsftpd
Created symlink /etc/systemd/system/ → /usr/lib/systemd/system/vsftpd.service.
[root@my ~]#

Next, We open the FTP port on the system firewall to allow access to the FTP service from external systems.

firewall-cmd --add-service=ftp --permanent --zone=public

firewall-cmd --reload


[root@my ~]# firewall-cmd --add-service=ftp --permanent --zone=public
[root@my ~]# firewall-cmd --reload
[root@my ~]#

Creating an FTP user

Creating an FTP user and create a password for that user.

First, We add the user,

adduser test

Next, we setup a password for the user,

passwd test


[root@server ~]# adduser test
[root@server ~]# passwd test
Changing password for user test.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Testing the FTP connection

Finally test FTP connection using FileZilla or WinSCP Client softwares.

Input your Server's IP or Hostname in the Host Field, Name of the FTP user created earlier in the Username Field and finally your Password.

If you have configured a different port for this, you wil have to mention in it in the Port Field.