FTP servers are crucial in today’s digital era, especially when it comes to securely transferring files between systems. One of the most secure and reliable FTP servers is VSFTPD (Very Secure FTP Daemon).
Understanding VSFTPD
VSFTPD is an FTP server that provides a secure connection to FTP servers. It does this by establishing a secure tunnel, which encrypts data flow to and from the FTP server. This secures the files being transferred from potential hackers, thus ensuring end-to-end encryption between the user and the FTP server.
Installing VSFTPD
To kickstart the process, we need to install the VSFTPD package. On your VPS, execute the following command:
dnf install vsftpd -y
After the installation is complete, it’s time to start the vsftpd service and enable it to start automatically at system boot. Use these commands:
systemctl start vsftpd systemctl enable vsftpd
You should see an output similar to this:
[root@server ~]# systemctl start vsftpd
[root@server ~]# systemctl enable vsftpd
Created symlink /etc/systemd/system/multi-user.target.wants/vsftpd.service → /usr/lib/systemd/system/vsftpd.service.
Next, we need to open the FTP port on the system firewall to allow access to the FTP service from external systems. This can be done with the following commands:
firewall-cmd --add-service=ftp --permanent --zone=public firewall-cmd --reload
The output should be:
[root@server ~]# firewall-cmd --add-service=ftp --permanent --zone=public success [root@server ~]# firewall-cmd --reload success
Creating an FTP User
It’s important to create an FTP user and set a password for secure access. Let’s add the user with the following command:
adduser shapehost
Next, let’s setup a password for the user. Please use the following command:
passwd shapehost
An output will appear, which will be similar to:
[root@server~]# adduser shapehost [root@server~]# passwd shapehost Changing password for user shapehost. New password: Retype new password: passwd: all authentication tokens updated successfully.
Testing the FTP Connection
Finally, we need to test the FTP connection. This can be done using FileZilla or WinSCP Client software. Input your server’s IP or hostname in the Host Field, the name of the FTP user created earlier (shapehost) in the Username Field, and finally your password. If you have configured a different port for this, it is necessary to mention it in the Port Field.
Conclusion
By following the steps outlined in this article, users should be able to install and configure VSFTPD on Rocky Linux 9 successfully. This ensures a secure file transfer process, protecting sensitive data from potential threats. Furthermore, this can be achieved with the help of Shape.host services, which offer Linux SSD VPS, facilitating a smooth and efficient working with VSFTPD.
Remember, in this digital era, it is crucial to protect your sensitive data. So, ensure to use a secure FTP server like VSFTPD and a reliable service provider like Shape.host for your business needs.