Debian setup ftpd
To check if a firewall is running, run the below command in Terminal:. Now we will do some basic configurations for the FTP server.
Now, we will add a user to the allowed FTP users list. Once you have finished the configurations, restart the vsftpd service. Run the command below to do so:. Now to test it, you will need an FTP client. We will use here the Filezilla as the FTP client. Add these settings anywhere in the file:.
Note: In Step 2, we opened the ports that we set here for the passive port range. If you change the values, be sure to update your firewall settings. When it is set to NO , only users on the list are allowed access. Use the -a flag to append to the file:. If our configuration is set up properly, anonymous users should be denied permission.
Open another terminal and run the following command. Be sure to replace The first step is to create the SSL certificates for use with vsftpd. By setting both the -keyout and -out flags to the same value, the private key and the certificate will be located in the same file:. Substitute your own information for the highlighted values below.
Comment them out so they look like this:. Below them, add the following lines that point to the certificate and private key we just created:. This is necessary to ensure that all traffic is encrypted, but it may force your FTP user to change clients. After that, add the following lines to explicitly deny anonymous connections over SSL and to require SSL for both data transfer and logins:. Finally, we will add two more options.
At this point, we will no longer be able to connect with an insecure command-line client. We will demonstrate how to connect with FileZilla because of its cross-platform support. Consult the documentation for other clients. When you first open FileZilla, find the Site Manager icon just above the word Host , the left-most icon on the top row. Click it:. Under My Sites a new icon with the words New Site will appear.
You can name it now or return later and use the Rename button. Fill out the Host field with your domain name or IP address. Or even if we are in a house with several computers, it would also be useful.
Best of all, it is still easy to set up one and more on Debian So in this post, you will learn how to set up an FTP server on Debian First of all, you need root access. Either the user is active and has the password, or your user is enabled to use Sudo. In any case, we also require you to establish a connection to the Debian server using SSH or locally with a terminal session.
Before any installation, the main thing is to update the system. This way it will be safer to continue:. Now we will install the FTP daemon that we have chosen.
The advantage of using it is that it is easy to configure and is in the Debian 10 repositories. Before modifying the contents of the configuration file, it is recommended to make a backup.
If something goes wrong we will be able to restore and nothing bad will have happened. The file is somewhat extensive but it is because it is very well documented. The truth is simple to manipulate. That is, it will only allow the download but not the upload.
If you want to change this, leave the following directive like this:. Here comes a slightly delicate matter. It is normal that when we use an FTP server we have to create users who use it. The problem is that some users can upload and delete files from other users. This should be avoided. It is necessary to define what each user has his folder and that he cannot modify or see the others.
0コメント