# sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/cert/vsftpd.pem -out /etc/cert/vsftpd.pem For this to happen, you need to create a certificate using the OpenSSL as shown # sudo mkdir /etc/cert Now we need to enable SSL/TLS to encrypt all data transferred via FTP. Enter the vsftpd username and password then click OK button. Open the web browser and on the URL enter and key in the name and password to access the FTP page. Save and close the file, then restart the VSFTPD services # sudo systemctl restart vsftpd Do not forget to edit the above file to suit your needs.Īdd the vsftpd user to the /etc/erlist file to give FTP access using the command. Once the backup is in place, Open the nf file # sudo vim /etc/nfĪdd the following lines to the open file listen=NO before anything else, it’s always a good idea to create a backup of the original config file # sudo cp /etc/nf /etc/ With the FTP user and directory in place, we need to configure VSFTPD service. # sudo chown vsftp:vsftp /home/vsftp/ftp/test # sudo chown nobody:nogroup /home/vsftp/ftpĬreate a directory where the files will be uploaded and ownership given to the VSFTPD user # sudo mkdir /home/vsftp/ftp/test Next, create an FTP directory and adjust the file ownership as follows # sudo mkdir /home/vsftp/ftp Therefore, the command will be: # sudo adduser vsftp We will create a new user called ‘vsftp’ for demonstration purposes. With VSFTPD installed, we are now going to add a user account. Step 2: Creating the Directory Structure for FTP To install vsftpd, execute the command: # sudo apt-get install vsftpd –yĪfter the installation start VSFTPD service by enabling it to start on boot time # sudo systemctl start vsftpd The default repository has the VSFTPD files available making installation a straight forward. A static IP address (in this case 192.168.0.102) should be available.A regular non-root user with sudo privileges. You can easily deploy a cloud server from Cloudcone starting at only $3.71. Prerequisitesīefore you get started, ensure that you have the following in check: In this guide, you will learn how to install VSFTPD on Ubuntu 18.04 server. However, FTP is not a secure protocol because it transmits data alongside other important details without encryption. The regular File Transfer Protocol (FTP) is a widely used networking standard protocol. Very Secure FTP daemon (VSFTPD) also known as a very secure FTP daemon is a secure way of sending and receiving files from one system to another in UNIX systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |