当前位置:网站首页>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边栏推荐
- Give you a linked list, delete the penultimate node of the linked list, and return the head node of the linked list.
- 给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
- 20. Channel allocation task implementation
- Camera连拍自动化测试shell脚本
- 融云实时社区解决方案
- Some operations of bit operation
- Self cultivation of programmers
- 爬虫入门(1)——requests(1)
- 字符串(3)
- 详解.NET的求复杂类型集合的差集、交集、并集
猜你喜欢

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

800V高压系统

flowable工作流所有业务概念

Opencv - closely combine multiple irregular small graphs into large graphs

Editor in ArcGIS Pro

Pytorch - autograd automatic differentiation

CANoe使用教程

Explain the difference set, intersection set and union set of complex type set in detail.Net

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

一篇文章了解RSocket协议
随机推荐
Easyexcel complex header export (one to many)
Canoe tutorial
【删除指定数字——leetcode]
在OBS上进行H265推流
8、实时数据备份和实时时钟功能实现
How many of the top ten test tools in 2022 do you master
20、通道分配任务实现
Framework定制系列(一)-----SystemUI NavigationBar导航栏上滑返回Launcher
Common methods of qcustomplot drawing tools
有道云笔记去除底部广告
软件架构与设计(十)-----架构技术
软件架构与设计(六)-----层次结构体
Easy start, swagger
samba服务器搭建指南
华为全球员工总数创新高:19.4万人,研发人员占比近50%
Pytorch - autograd automatic differentiation
Among the three "difficult and miscellaneous diseases" of machine learning, causal learning is the breakthrough | Liu Li, Chongqing University
Leetcode - random set, longest multiclass subsequence
爬虫入门(1)——requests(1)
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。