Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build Linux FTP Server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to build the Linux FTP server, the article is very detailed, has a certain reference value, interested friends must read it!

First, let's take a look at the main configuration files as follows:

/ etc/VSFTPd/VSFTPd.conf main configuration file

/ etc/VSFTPd.FTPusers list of user names that prevent users from accessing the FTP server

/ etc/VSFTPd.userlist controls the list of user names for users to access the FTP server, as specified by the

The userlist_deny parameter determines whether this is allowed or denied.

FTP is divided into two categories, one is Port FTP, that is, general FTP, and the other is PASVFTP, which is described as follows:

1.Port FTP this is a general form of FTP, the first control channel will be established, the default value is Port 21, that is, to establish an online connection with Port 21, and send instructions through this online. Second, the FTP server side will set up a data transmission channel with a default value of 20, that is, to establish an online connection with Port 20 and transmit data through Port 20.

2.PASV FTP is similar to Port FTP in that it first sets up a control channel, which defaults to Port 21, that is, to establish an online connection with Port 21, through which instructions are issued. Second, the request for data transfer will be made by the client side, including the number of the data transmission Port.

Build a simple linux FTP server to build a platform:

1. Edit / etc/VSFTPd/VSFTPd.conf file

Anonymous_enable=YES

Local_enable=YES allows local users to access FTP

Write_enable=YES allows writing

Default permission mask for local_umask=022 local users to create files

Xferlog_enable=YES / * if started, the uploaded and downloaded information will be fully recorded as defined by xferlog_file below

In the file. It is on by default. * / and default is in / var/log/VSFTPd.log

Connect_from_Port_20=YES

Xferlog_std_format=YES

If listen=YES / * is started, VSFTPd will be executed independently. If VSFTPd executes independently, as shown in

The default value for RedHat9 must be enabled. If VSFTPd is included in xinetd, this feature, such as RedHat8, must be turned off. The default value in RedHat9 is YES. , /

Tcp_wrappers=YES

2. Restart the VSFTPd service

Whenever the VSFTPd service is started, an anonymous access FTP is automatically enabled, and the default access is the / var/FTP directory.

Restart the VSFTP service directly with the following command:

[root@relay VSFTPd] # / sbin/service VSFTPd restart

3. Client access

Method 1: FTP:// username:password@FTPservername enables user access

Method 2: FTP:// FTPservername enables anonymous access

Method 3: access in text mode, such as at the windows command prompt.

These are all the contents of the article "how to build a Linux FTP Server". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report