当前位置:网站首页>【FTP】FTP连接时出现“227 Entering Passive Mode”的解决方法
【FTP】FTP连接时出现“227 Entering Passive Mode”的解决方法
2022-07-01 04:40:00 【姜太小白】
FTP连接时出现“227 Entering Passive Mode”解决办法也很简单,只需要关闭客户端的PASV方式,强制其用PORT方式访问服务器即可。
FTP服务的两种工作模式:
•port方式(主动模式), 连接过程:客户端向服务器的FTP端口(默认是21)发送连接请求,服务器接受连接,建立一条命令链路。当需要传送数据时, 客户端在命令链路上用PORT命令告诉服务器:“我打开了***X端口,你过来连接我”。于是服务器从20端口向客户端的***X端口发送连接请求,建立一条数据链路来传送数据。
•pasv方式 ( 被动模式 ), 连接过程:客户端向服务器的FTP端口(默认是21)发送连接请求,服务器接受连接,建立一条命令链路。当需要传送数据时, 服务器在命令链路上用PASV命令告诉客户端:“我打开了***X端口,你过来连接我”。于是客户端向服务器的***X端口发送连接请求,建立一条数据链 路来传送数据。
由于服务器上的FTP进行TCP/IP筛选,仅允许特定的端口可以被客户端连接,所以无法使用PASV方式。找到了原因,解决办法也很简单,只需要关闭客户端的PASV方式,强制其用PORT方式访问服务器即可。
客户端登录FTP服务器后,用passive命令关闭客户端的PASV方式,如下:
ftp> passive
Passive mode off.再次执行该命令就可以启用PASV模式。
边栏推荐
- 2022年G1工业锅炉司炉特种作业证考试题库及在线模拟考试
- 2022危险化学品生产单位安全生产管理人员题库及答案
- Question bank and answers for chemical automation control instrument operation certificate examination in 2022
- 2022-02-15 (399. Division evaluation)
- Shell之Unix运维常用命令
- Pytorch(二) —— 激活函数、损失函数及其梯度
- 2022 gas examination question bank and online simulation examination
- 2022年化工自动化控制仪表操作证考试题库及答案
- All in all, the low code still needs to solve these four problems
- RDF query language SPARQL
猜你喜欢

How to use maixll dock

Introduction to JVM stack and heap

C#读写应用程序配置文件App.exe.config,并在界面上显示

Pytorch(二) —— 激活函数、损失函数及其梯度

Threejs opening

先有网络模型的使用及修改

LM小型可编程控制器软件(基于CoDeSys)笔记二十:plc通过驱动器控制步进电机

2022 t elevator repair question bank and simulation test

slf4j 简单实现

Strategic suggestions and future development trend of global and Chinese vibration isolator market investment report 2022 Edition
随机推荐
Offline installation of Wireshark 2.6.10
Talk about testdeploy
OSPF notes [dr and bdr]
slf4j 简单实现
Question bank and answers for chemical automation control instrument operation certificate examination in 2022
VIM easy to use tutorial
2022危险化学品生产单位安全生产管理人员题库及答案
离线安装wireshark2.6.10
Section 27 remote access virtual private network workflow and experimental demonstration
Difference between cookie and session
TCP/IP 详解(第 2 版) 笔记 / 3 链路层 / 3.4 桥接器与交换机 / 3.4.2 多属性注册协议(Multiple Registration Protocol (MRP))
2022 gas examination question bank and online simulation examination
Internet winter, how to spend three months to make a comeback
Selenium opens the Chrome browser and the settings page pops up: Microsoft defender antivirus to reset your settings
Simple implementation of slf4j
VR线上展览所具备应用及特色
Dede collection plug-in does not need to write rules
Dual contractual learning: text classification via label aware data augmentation reading notes
Openresty rewrites the location of 302
pytorch中常用数据集的使用方法