This tutorial guides you through the process of installing and configuring VSFTPD (Very Secure FTP Daemon) on Rocky Linux 8. VSFTPD is a lightweight and secure FTP server that allows for easy file transfer over FTP protocols.
rocky linuxVSFTPDftp
Medium
VPS
2
vCPU
8 GB
Memory
80 GB
NVMe Disk
4096 GB
Traffic
20.90€
/month
* Up to 4 vCPU, 24GB RAM, 240GB NVMe Disk Space and 1Gbit/s Network Speed
#### Prerequisites
Before you begin, ensure you have:
- Access to a terminal on your Rocky Linux 8 system
- Administrative privileges (sudo or root access)
#### Step 1: Install VSFTPD
Install VSFTPD using the package manager:
```bash
sudo dnf install vsftpd
```
#### Step 2: Configure VSFTPD
Edit the VSFTPD configuration file `/etc/vsftpd/vsftpd.conf`:
```bash
sudo nano /etc/vsftpd/vsftpd.conf
```
Update the configuration as needed. Here are some basic settings:
```ini
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
```
Save and exit the editor.
#### Step 3: Start and Enable VSFTPD
Start the VSFTPD service and enable it to start on boot:
```bash
sudo systemctl start vsftpd
sudo systemctl enable vsftpd
```
#### Step 4: Configure Firewall (if necessary)
If your firewall is enabled, allow FTP service through the firewall:
```bash
sudo firewall-cmd --permanent --add-service=ftp
sudo firewall-cmd --reload
```
#### Step 5: Test FTP Access
Use an FTP client (such as FileZilla) to connect to your FTP server:
- Host: Your Rocky Linux 8 server's IP address or hostname
- Port: 21 (default FTP port)
- Username: Your system username
- Password: Your system password
#### Step 6: Transfer Files
Transfer files between your local machine and the FTP server using the FTP client.
#### Conclusion
You have successfully set up VSFTPD on Rocky Linux 8. It is now ready to securely transfer files over FTP protocols.
**Additional Resources:**
- **VSFTPD Documentation:** [https://security.appspot.com/vsftpd.html](https://security.appspot.com/vsftpd.html)
- **Rocky Linux Documentation:** [https://docs.rockylinux.org/](https://docs.rockylinux.org/)