当前位置:网站首页>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边栏推荐
猜你喜欢

Endnote is associated with word

Endnote 与word关联

Nftscan and nftplay have reached strategic cooperation in the field of NFT data

Easy start, swagger

关于Simulink如何生成模型覆盖率报告

Opencv - closely combine multiple irregular small graphs into large graphs

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

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

Self cultivation of programmers

ECCV 2022 | SSP: 自支持匹配的小样本任务新思想
随机推荐
Pytorch - autograd automatic differentiation
软件架构与设计(九)-----基于组件的架构
20. Channel allocation task implementation
QCustomPlot绘图工具常用方法
Grpc protocol buffer
Flowable workflow all business concepts
flowable工作流所有业务概念
22. Realization of message processing task
手把手带你编写一个规范的字符设备驱动
Communication between client and server based on rsocket protocol
About how Simulink generates model coverage reports
如何搭建openGrok代码服务器
About the pictures inserted in the word document, only the following part is displayed
最小堆提升每次排序的效率
爆肝整理 JVM 十大模块知识点总结,不信你还不懂
Stateflow logic system modeling
21、电文处理任务定义
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
如何压缩与解压缩ramdisk.img
一篇文章了解RSocket协议