免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 48944 | 回复: 2
打印 上一主题 下一主题

227 Entering Passive Mode(172.17.140.138.188.74) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-19 17:43 |只看该作者 |倒序浏览
[root@SZQX992 ~]# ftp 192.168.34.41
Connected to 192.168.34.41 (192.168.34.41).
220 (vsFTPd 2.0.5)
Name (192.168.34.41:root): qxlogin
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (172,17,140,138,119,13)

"Ctrl+C"

receive aborted
waiting for remote to finish abort
ftp> passive
Passive mode off.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r--    1 504      504            22 Sep 19 06:56 a.zip
drwxr-xr-x    2 504      504          4096 Jul 26 09:22 doc
drwxr-xr-x    2 504      504          4096 Jul 19 14:02 espn
drwxr-xr-x    2 504      504         28672 Sep 19 08:27 forecast
drwxr-xr-x    2 504      504         73728 Sep 19 09:17 szobt
226 Directory send OK.
ftp>

windows平台cmd命令行

C:\>ftp 192.168.34.41
连接到 192.168.34.41。
220 (vsFTPd 2.0.5)
用户(192.168.34.41none)): qxlogin
331 Please specify the password.
密码:
230 Login successful.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
a.zip
doc
espn
forecast
szobt
226 Directory send OK.
ftp: 收到 35 字节,用时 0.00秒 35000.00千字节/秒。
ftp>

服务器到客户端之前有防火墙,有作NAT地址转换。

问题:windows平台cmd命令下正常,为什么linux平台下面还要输入passive--passive off mode?
如果linux平台下面要达到windows平台下默认登录就正常,应该怎样处理。
最好能在Server端处理(192.168.34.41)上面处理,怎么处理?
如果要在客户端处理(10.153.99.2)上面处理,怎么处理?

论坛徽章:
0
2 [报告]
发表于 2011-09-19 19:50 |只看该作者
回复 1# hong2611


    iptables 本地  lo

论坛徽章:
0
3 [报告]
发表于 2011-09-20 09:32 |只看该作者
服务器要配置成passive模式,也就是说要开另外一个端口给passive.如果客户端有防火墙,也要让客户端能访问passive的端口。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP