当前位置:网站首页>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边栏推荐
- MATLAB不覆盖导入EXCEL
- QT refresh UI interface problem
- Close independent windows and close other windows at the same time
- 关闭独立窗口对其他窗口同时关闭的问题
- 融云实时社区解决方案
- ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
- An article about rsocket protocol
- QCustomPlot绘图工具常用方法
- 3. Basic constants and macro definitions
- Camera连拍自动化测试shell脚本
猜你喜欢

An article about rsocket protocol

有奖活动分享:使用WordPress搭建一个专属自己的博客后最高可领取iPhone13

爆肝整理 JVM 十大模块知识点总结,不信你还不懂

Getting started with crawlers (1) -- requests (1)

Pytorch - autograd automatic differentiation

Flowable workflow all business concepts

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

MIT pointed out that the public pre training model should not be used indiscriminately

Matlab exports high-definition pictures without distortion in word compression and PDF conversion

800V high voltage system
随机推荐
爆肝整理 JVM 十大模块知识点总结,不信你还不懂
手把手带你编写一个规范的字符设备驱动
Qt刷新UI界面问题
Opencv - cut out mask foreground area from grayscale image
软件架构与设计(二)-----架构模型
About the pictures inserted in the word document, only the following part is displayed
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
The subst command mirrors a folder to a local disk
Flowable workflow all business concepts
百度提出动态自蒸馏方法,结合交互模型与双塔模型实现稠密段落检索
3. Basic constants and macro definitions
Grpc protocol buffer
多线程
软件架构与设计(六)-----层次结构体
程序员的自我修养
Matlab导出高清图片、且Word中压缩不失真、转换PDF不失真
Baidu proposes a dynamic self distillation method to realize dense paragraph retrieval by combining interactive model and double tower model
QT refresh UI interface problem
VirturalBox解决kernel driver问题
【删除指定数字——leetcode]