FTP server configuration under Linux

xiaoxiao2021-03-06  104

In order to implement the FTP server configuration in the Linux environment, most of the Linux distribution kits are Washington University FTP (WU-ftpd), which is a performance excellent server software because it has many powerful features and oversized throughput. The FTP server on the Internet has more than 60% of the FTP server.

Installation and Run We take redhat Linux as an example. 1. The FTP service can be divided into two categories according to the different service objects: a class is a system FTP server, which only allows legitimate users on the system; another category is an anonymous FTP server, which allows anyone to log in to FTP Server After connecting to the server, enter anonymous in the login prompt, you can access the server. For these two services, the WU-FTPD RPM package can be installed through the first CD of Redhat, just enter the system as root, you can run the following command: rpm - ivh anonftp -xx-x.i386.rpm rpm - IVH wu-ftpd-xxx-x.i386.rpm where -xx-x and -xxx-x are version numbers. 2, Like Apache, WU-ftpd can also be configured to automatically start: execute the setup program included with Red Hat, select Wu-ftpd in the "System Service" option, and press the [OK] button to determine exit. Automatic start is convenient, however, when we change the Wu-ftpd configuration file, you need to use manual boot: Start: / usr / sbin / ftprestart close: / usr / sbin / ftpshut

FTP Server Configuration To ensure that the FTP server is secure, you must set some important configuration files to better control the user's access. These profiles are: / etc / ftpusers, / etc / ftpConversions, / etc / ftp-groups, / etc / ftpppHosts, / etc / ftpaccess. Using these files, which people can control very accurately, when you can connect the server from what location, and you can check / etc / ftpusers: Users contained in this folder cannot pass FTP Log in to the server, sometimes you need to prohibit the user account to write to file / etc / ftpuser so you can prevent some users from using FTP services. / Etc / ftpconversions: Used to configure compression / decompression programs. / Etc / ftpgroups: Create a user group, and members in this group predefine can access the FTP server. / etc / ftpphosts: Used to access or allow remote hosts to specific accounts, for example: Allow CZC 192.168.0.0.0/24 deny CDD 10.0.0.0/8 indicates that CZC users are allowed to connect from 192.168.0 network segments, Reject CDD from 10. This network segment is connected. / Etc / ftpaccess: is a very important configuration file to control access rights, each row in the file define an attribute and set the value of the attribute.

Here is some of its common configurations to introduce: 1. Define user category format: Class [Class Name] [REAL / GUEST / Anonymous] [IP Address] function: The function of this instruction sets the category of the user on the FTP server. And the client's IP address can be restricted, allowing specific or all IP addresses to access the FTP server. 2, the login retries are entered in the command line: loginfails 10, which indicates that the connection is cut if it is not logged in 10 times. 3, password check format: passwd-check WARN is a check for password usage for anonymous users, where is one of three possible strings: None, Trivial, RFC822. If NONE is selected, it means that it will not be checked for passwords; if TriVial, it means that there is a certain requirement for the password, it needs to have at least one @ symbol in the password; if RFC822, the most stringent, require E-mail address The RFC822 headline must be observed (such as: czc@domain.com). For example: Passwd-Check RFC822 Warn, indicating that the password is very strict, and when the password does not meet the regulations, warning information will occur. 4. Restriction format of the number of logins: limit [Category] [Number] [Time] [File Name] Settings The specified category can log in to FTP in the agreed time. For example: Limit Remote Any / etc / Many.MSG, indicating that the number of logins does not exceed 20 in any time, otherwise the MANY.MSG warning message will be displayed. Use these configurations reasonably to effectively protect our server. Verify that the installation, after configuring the FTP server, you can verify that the FTP server can be accessed with graphics tools and command lines. The most common command in Linux is FTP, which provides an uncomplex FTP server interface. Connect to the FTP server, just enter: ftp servername after the command prompt, use the hostname or want to connect the IP address of the FTP server instead of ServerName, follow the prompts to enter the username and password, then move or move off or down with the standard Linux. Server directory structure. In addition, graphical FTP programs can also be used, including window GFTP, which can access the FTP server with a web browser.

The above is the key points for FTP server configuration under Linux, I hope to help you.

转载请注明原文地址:https://www.9cbs.com/read-124312.html

New Post(0)