![]() Now we have to configure the firewall so that the FTP traffic can pass through the firewall: sudo ufw allow 21/tcp Save and exit the file, then restart Vsftpd using the following command below: sudo systemctl restart vsftpd Rsa_private_key_file=/etc/cert/vsftpd.pem Next, edit nf file and make some changes: nano /etc/nfĪdd the following line: rsa_cert_file=/etc/cert/vsftpd.pem Sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/cert/vsftpd.pem -out /etc/cert/vsftpd.pem To provide a secure FTP connection to the server, we need to encrypt the server using an SSL certificate: sudo mkdir /etc/cert Restart the server for the changes to take effect: sudo systemctl restart vsftpd Now we must proceed and edit the main configuration file /etc/nf: nano /etc/nf Sudo chown meilana:meilana /home/meilana/ftp_directory/ftp_data Then, create a directory where files can be uploaded and give ownership to meilana user by executing command: sudo mkdir -p /home/meilana/ftp_directory/ftp_data ![]() Sudo chmod a-w /home/meilana/ftp_directory Sudo chown nobody:nogroup /home/meilana/ftp_directory ![]() ![]() Sudo mkdir -p /home/meilana/ftp_directory ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |