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

Introduction to the method of quickly building ftp server under Linux environment

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This paper mainly studies the method of quickly building ftp server in Linux environment, as follows. First, let's take a look at the introduction to ftp:

FTP is the English abbreviation of File Transfer Protocol (File transfer Protocol), while the Chinese abbreviation is "text transfer Protocol". Used for two-way transfer of control files on Internet. It is also an application (Application). There are different FTP applications based on different operating systems, and all of these applications follow the same protocol to transfer files. In the use of FTP, users often encounter two concepts: "Download" and "Upload".

Generally speaking, in various linux distributions, the default ftp software is vsftp. From the recognition of vsftp in various linux distributions, we can see that vsftp should be a good ftp software.

1. Check the installation of vsftpd software

Use the following command #

Rpm-qa | grep vsftpd

You can detect if vsftpd software is installed, and if not, use the YUM command to install it

Yum install vsftpd-Y2, start the service

The use of vsftpd software mainly includes the following commands:

Start ftp command # service vsftpd start stop ftp command # service vsftpd stop restart FTP life # service vsftpd restart3, vsftpd configuration

There are three main configuration files for    ftp, located in the / etc/vsftpd/ directory, which are:

Ftpusers this file is used to specify which users cannot access the ftp server. User_list the default account indicated by this file also cannot access ftpvsftpd.conf vsftpd's main profile by default

4. Log in as an anonymous user

Let's remove the following from the configuration file vsftpd.conf

Anon_upload_enable=YESanon_mkdir_write_enable=YES

With the # in front of the two items, you can complete the configuration of anonymous users. At this time, anonymous users can log in to upload and download files. Remember to restart the service after modifying the configuration file.

5. Creation and use of non-anonymous accounts

The vsftpd service is related to the system user, for example, we create a file called testwww

# useradd testwww#passwd testwww6, login method (non-vsftp machine)

The browser opens:

Enter on the browser

Ip/, the machine where ftp://vsftp resides

File opening:

Folder input

Ftp://vsftp belongs to the machine ip/; right-click to choose to log in

Cmd:

Input in dos

Enter the user name and password for the ip of the machine where the ftp vsftp resides

Xftp login:

Small details

By default, sftp can log in, but ftp cannot; you need to log in in

The default port for vsftpd.conf to join ftp (sftp default port 22).

Listen_port=21

Summary

The above is the whole content of this article about how to quickly build a ftp server under the Linux environment. I hope it will be helpful to you. Interested friends can continue to refer to other related topics on this site, if there are any deficiencies, please leave a message to point out. Thank you for your support to this site!

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