免费注册 查看新帖 |

Chinaunix

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

[FTP] ftp有问题,据说和被动模式(passive mode)有关.请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-26 16:07 |只看该作者 |倒序浏览
我们现在在外地新建一分公司。

使用solaris 自带的ftp上分公司server 时, 不能ls 或 上下传,没有响应。但登录没问题。

据说和ftp的被动模式有关。 现在使用另一种ftp(ncftp) 就可以了。

想知道到底是为什么?

论坛徽章:
0
2 [报告]
发表于 2004-04-26 16:14 |只看该作者

ftp有问题,据说和被动模式(passive mode)有关.请教

补充: cd 目录是正确的。

但pwd, ls什么的就没响应了。

put/get 时 显示 200 port command successful. 并且能看到上下传的文件, 但是0字节。 而且ftp就没有响应了。 只能ctrl-c断开连接

论坛徽章:
0
3 [报告]
发表于 2004-04-27 16:42 |只看该作者

ftp有问题,据说和被动模式(passive mode)有关.请教

Your firewall shall not only allow port 21 access the ftp, you need allow addtional port such as port 10000, then you can use passive method.

论坛徽章:
0
4 [报告]
发表于 2004-04-27 17:34 |只看该作者

ftp有问题,据说和被动模式(passive mode)有关.请教

Active mode: The client will use PORT command to send a port number to the server, the server will use that port number as a destination port to connect to the client.

Passive mode: The server will open a port number and inform the client, the client will use the port number to connect to the server.

The main difference is the in active mode the server will initiate the connection for data transfering and in passive mode the client will initiate the connection for data transfering

论坛徽章:
0
5 [报告]
发表于 2004-04-28 16:45 |只看该作者

ftp有问题,据说和被动模式(passive mode)有关.请教

那我这边, 也就是client 端, 为什么从通用的ftp 换 成另一种 ncftp就可以了?

论坛徽章:
0
6 [报告]
发表于 2004-04-29 10:29 |只看该作者

ftp有问题,据说和被动模式(passive mode)有关.请教

你所说的通用ftp是不是microsoft带的ftp(包括ftp.exe和IE)?
事实是有一些ftp服务器不支持passive mode的连接。有的是比较旧的版本,有的是处于安全的考虑。因为在active mode下ftp server只需开放21和20端口。

论坛徽章:
0
7 [报告]
发表于 2004-04-29 10:31 |只看该作者

ftp有问题,据说和被动模式(passive mode)有关.请教

这里有两篇文章供你参考:
HOW TO: Configure Internet Explorer to Use Both the FTP PORT Mode and PASV Mode in Windows 2000:
http://support.microsoft.com/default.aspx?scid=kb;en-us;309816

FTP Passive Mode May Terminate Session:
http://support.microsoft.com/default.aspx?scid=kb;en-us;189262
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP