当前位置:网站首页>FTP service and configuration
FTP service and configuration
2022-07-22 05:21:00 【Now a lemon】
List of articles
One 、FTP summary
FTP(File Transfer Protocal, Text transfer protocol ) Typical C/S Application layer protocol of architecture , The server software is required 、 The two parts of the client software jointly realize the file transfer function .FTP The connection between client and server is reliable , Connection oriented , It provides reliable guarantee for data transmission .
TCP agreement :20,21 port
Two 、FTP Two modes of service
FTP It's a file transfer protocol , It supports two modes , One way is called Standard( That is to say Active, Take the initiative ), One is Passive( That is to say PASV, passive ).Standard The pattern is FTP The client sends PORT Order to FTP Server.Passive The pattern is FTP The client sends PASV Order to FTP Server
1.Standard Pattern
FTP The client first communicates with FTP Server Of TCP21 Port establish connection , Send commands through this channel , When the client needs to receive data, it will send it on this channel PORT command .PORT The command contains what port the client uses to receive data . When transmitting data , The server passes its own TCP20 Port send data .FTP Server A new connection must be established with the client to transmit data .
2.Passive Pattern
When establishing control channels and Standard Similar model , When the client sends through this channel PASV When ordered ,FTP Server Open a window located in 1024 and 5000 And notify the client of the request to transmit data on this port , then FTP Server Data will be transmitted through this port , This is the time FTP Server There is no longer a need to establish a new connection with the client
3、 ... and 、 Build and configure FTP service
3.1 preparation
3.1.1. Experimental environment
The server :CentOS7 System ip:192.168.226.131
client :Win10 System ip:192.168.226.160
3.1.2. Turn off firewall and core protection
Turn off firewall and core protection
systemctl stop firewalld # Turn off firewall
systemctl disable firewalld # Turn on and turn off the firewall
setenforce 0 # Temporarily turn off the enhanced safety function
3.1.3. install vsftpd Software
Linux In the system , yes vsftpd Provide ftp Service for
Turn on vsftp Service and view ports
Backup files , In case something goes wrong
3.2 Anonymous user access
3.2.1 Modify the configuration file
Edit the profile accessed by anonymous users
Give the maximum permission to access the directory
3.2.2 test
stay /var/ftp/pub Next create a file goodman
open win10 Command line , Enter into 192.168.226.131,pub Appear under directory goodman file
Download the file
The file will be downloaded locally
View file contents
Create a new file and upload it
Test success
3.3 Local user access
3.3.1 Modify the configuration file
Edit the configuration file accessed by local users
Give the maximum permission to access the directory
3.3.2 test
establish ngs.txt file
Use zhangsan User connection
download ngs.txt
establish zhangsan Upload files
/var/www/ngs/ There will be zhangsan.txt file
summary
FTP How it works
VSFTPD Two working modes of ( The difference between active and passive )
FTP Port usage of
FTP Configuration and use of services
How to realize anonymous user login and local user login
边栏推荐
- GTSAM入门学习
- [chestnut sugar GIS] bat - how to delete data with the same suffix under subfolders
- CITIC branch Mobile has registered: it plans to raise 4billion yuan to create a listed enterprise for research and development of 5g in optical valley
- The way to practice and fight strange things: promise introduction principle and common methods
- mysql 逻辑架构
- mysql数据增删改
- Lianying medical passed the registration: it plans to raise 12.5 billion yuan, and Xue min controls 32% of the equity
- 2022.7.9暑假个人训练1-B.How old are you Mr. String
- Butterknife Library (an efficient tool library, Xiaobai only records one usage - no in-depth study, hee hee)
- PL/SQL 记录
猜你喜欢
DRF -- users user module
【板栗糖GIS】arcmap——如何制作面数据的文字四至
【链表及其经典问题】
Solution of access denied for user 'root' @ 'localhost' (using password: yes)
DRF -- cross domain problem solving
全面败退,中国手机首次遭受重大挫折,三星和苹果则大幅增长
GTSAM入门学习
Navicat 导入sql脚本文件
MySQL data type
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (6)
随机推荐
Merge sort solves the quantity problem of reverse order pairs
Knowledge drops - English Vocabulary
Image text cross modal fine-grained semantic alignment confidence correction mechanism aaai2022
Leetcode · daily question · 814 Binary tree pruning recursion
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (6)
Symbol的使用,es6获取key值的新方法
配置.browserslistrc 做浏览器适配
二叉树刷题(完结篇)
Eye of depth (XV) -- derivative
GMT learning notes
文件上传基础详解
OrmLiteDB数据库(依赖)的简单使用(小白成长记录)
MySQL data type
BraTS18——多模态MR图像脑肿瘤分割挑战赛续
Introduction to excellent verilog/fpga open source project (XXIX) - open source website
[chestnut sugar GIS] how do individual users of Tencent conference change their names
Scratch score query Electronic Society graphical programming scratch grade examination level 4 true questions and answers analysis June 2022
Codeforces Round #807 (Div. 2)
Command line use of eslint
How to exit the current C application