Prepare the following details before executing the next command. You will be asked for details on the SSL, this is also a standard process if you bought an SSL certificate. Create a new certificate or ignore this and install/copy your own certificate. Create the directory to place the SSL file if it does not exist. In this example we will be creating a self-signed certificate.Ġ1. Read More How To Install And Configure Terraform In UbuntuĪlso note that you can also provide or install your own/bought SSL certificate. Note that if SSL is configured, only SFTP or registered users with SSH keys configured will be allowed. To secure the FTP with SSL/TLS certificate use the following steps. Check the status of the service to see if there are errors. Restart the service to apply the changes $ sudo systemctl restart vsftpdĠ5. Value: /etc/vsftpd.chroot_list Uncomment this setting and set the value as “/etc/vsftpd/chroot_list”.Īdd the following configurations at the bottom.Ġ4. This limits the FTP users to their own directory. Set the value as “NO” to not allow anonymous access. NO When enabled non-registered users will be able to access the FTP service. Applicable for registered Users with Password or SSH (or SFTP). Edit the configuration file $ sudo nano /etc/nfĠ3. Backup the original version of the VSFTP configuration $ sudo cp /etc/nf /etc/Ġ2. $ sudo ufw enableĬheck again that the firewall is active. Accept the changes by confirming with “y”. It should be “inactive” $ sudo ufw statusĠ8. $ sudo ufw allow 20/tcpĬheck the firewall status. Create the firewall rules to allow FTP traffic on Port 20, 21 and 22. Set the service to automatically start on boot $ sudo systemctl enable vsftpdĠ7.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |