当前位置:网站首页>FTP file transfer protocol
FTP file transfer protocol
2022-07-28 15:40:00 【A cat that can't modulate and demodulate】
transmission mode
FTP Two modes are supported :Standard (PORT The way , Active way ),Passive (PASV, Passive way ).
Port Pattern
FTP Client first and server TCP 21 Port establish connection , Used to send commands , 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 , Server side through their own TCP 20 The port is connected to the specified port of the client to send data .FTP server A new connection must be established with the client to transmit data .
Passive Pattern
Establish control channels and Standard Similar model , But after establishing the connection, send Pasv command . Server received Pasv After the command , Open a temporary port ( The port number is greater than 1023 Less than 65535) And notify the client of the request to transmit data on this port , Client connection FTP Server this port , then FTP The server will transmit data through this port .
quite a lot Firewalls are not allowed to accept externally initiated connections when they are set , So many are located behind the firewall or intranet FTP Server does not support PASV Pattern , Because the client cannot open through the firewall FTP The high-end port of the server ; Many intranet clients cannot use PORT Mode login FTP The server , Because from the server TCP 20 Unable to establish a new connection with the client of the internal network , Make it impossible to work .
To configure
install
yum install -y vsftpd
Turn off firewall
systemctl stop firewalld
setenforce 0Set up service startup
systemctl enable vsftpd
# Boot up
systemctl start vsftpd
# Turn on vsftpd
systemctl status vsftpd
# see vsftpd The state of 
Modify the configuration file ( Anonymous access )
vim /etc/vsftpd/vsftpd.conf

test
stay /var/ftp/pub/ Next create a txt text file , stay windows On this PC , Input ftp The address of the server

success !
Account password login FTP
Get into /etc/vsftpd/vsftpd.conf Set the configuration file
vim /etc/vsftpd/vsftpd.conf



Get into /etc/vsftpd/chroot_list Add the user name with restricted login
vim /etc/vsftpd/chroot_list
paul # Login username Configuration file blacklist White list
/etc/vsftpd/user_list The default is blacklist , Get rid of if userlist_dent=NO Notes , Open the white list , Only the following users can log in , We join users quota To the blacklist .
echo quota >> /etc/vsftpd/user_list# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
quotaquota The user is forbidden to log in
stay /etc/vsftpd/vsftpd.conf Middle configuration , After restarting the service quota Login successful
vim /etc/vsftpd/vsftpd.conf
userlist_enable=YES
userlist_deny=NO边栏推荐
- 8. Realization of real-time data backup and real-time clock function
- vs动态库调试
- GRC concept GRC architecture RPC lifecycle
- flowable工作流所有业务概念
- VirturalBox解决kernel driver问题
- Opencv - cut out mask foreground area from grayscale image
- 4.8 HD-GR GNSS导航软件源码
- 给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
- Give you a linked list, delete the penultimate node of the linked list, and return the head node of the linked list.
- 2、开源GPS项目HD-GR GNSS的自叙
猜你喜欢

AS如何不区分大小写去进行智能提示

一文了解 Rainbond 云原生应用管理平台

Easyexcel complex header export (one to many)

软件架构与设计(八)-----分布式架构

Among the three "difficult and miscellaneous diseases" of machine learning, causal learning is the breakthrough | Liu Li, Chongqing University

Editor in ArcGIS Pro

Rongyun real-time community solution

An article about rsocket protocol

NFTScan 与 NFTPlay 在 NFT 数据领域达成战略合作

软件架构与设计(四)-----数据流架构
随机推荐
Leetcode - random set, longest multiclass subsequence
samba服务器如何配置
800V高压系统
Daily news on July 28, 2022: Science: AI has made another breakthrough in protein design, and can design specific functional proteins
GRC concept GRC architecture RPC lifecycle
File and directory operations (5)
关于word文档中插入的图片只显示下面一部分
Sharing of award-winning activities: you can get up to iphone13 after using WordPress to build your own blog
Qt创建文件夹的两种方式区别
Grpc frequently asked questions
8. Realization of real-time data backup and real-time clock function
Communication between client and server based on rsocket protocol
1. Author of the open source GPS project hd-gr GNSS
Pytorch - sequential and modulelist
Five connection modes of QT signal and slot
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
Nftscan and nftplay have reached strategic cooperation in the field of NFT data
详解.NET的求复杂类型集合的差集、交集、并集
An article about rsocket protocol
Opencv - closely combine multiple irregular small graphs into large graphs