免费注册 查看新帖 |

Chinaunix

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

[FTP] ProFTPD服务器只能提供服务给linux客户端,windows客户端失败,为何? [复制链接]

论坛徽章:
1
2015元宵节徽章
日期:2015-03-06 15:50:39
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-08 12:24 |只看该作者 |倒序浏览
我使用了Debian linux,直接安装了ProFTPD的deb包,配置完毕之后,使用linux的客户端可以登录,浏览目录,上传文件,但是windows的则不行,只能登录,无法浏览目录,windows自带的命令行,IE和Filezilla都显示同样的错误:
filezilla:
Status:        Connected with 192.168.100.205. Waiting for welcome message...
Response:        220 192.168.100.205 FTP server ready
Command:        USER bazhai
Response:        331 Password required for bazhai.
Command:        PASS ******
Response:        230-Welcome, bazhai !
Response:        230-This is the SCCGD's FTP server.
Response:        230-
Response:        230-The local time is: Sat Jan  7 20:06:35 2006
Response:        230-
Response:        230-The Max users could be handled up to 10.
Response:        230-There are 1 users logon this server now.
Response:        230-
Response:        230-The local directory you exist is /
Response:        230-
Response:        230-
Response:        230 Anonymous access granted, restrictions apply.
Command:        FEAT
Response:        211-Features:
Response:        211-MDTM
Response:        211-REST STREAM
Response:        211-SIZE
Response:        211 End
Command:        SYST
Response:        215 UNIX Type: L8
Status:        Connected
Status:        Retrieving directory listing...
Command:        PWD
Response:        257 "/" is current directory.
Command:        TYPE A
Response:        200 Type set to A
Command:        PORT 192,168,100,62,7,55
Response:        200 PORT command successful
Command:        LIST
Trace:        <Empty directory listing>
Error:        Could not retrieve directory listing
Error:        Interrupted by user!
Command:        PWD

window FTP command
c:\ftp 192.168.100.205
220 192.168.100.205 FTP server ready
User (192.168.100.205:(none)): bazhai
331 Password required for bazhai.
Password:
230-Welcome, bazhai !
230-This is the SCCGD's FTP server.
230-
230-The local time is: Sat Jan  7 20:16:24 2006
230-
230-The Max users could be handled up to 10.
230-There are 1 users logon this server now.
230-
230-The local directory you exist is /
230-
230-
230 Anonymous access granted, restrictions apply.
ftp> dir
200 PORT command successful
Connection closed by remote host.
ftp>

Debian linux client:
sccxx:~# ftp 192.168.100.205
Connected to 192.168.100.205.
220 192.168.100.205 FTP server ready
Name (192.168.100.205:root): bazhai
331 Password required for bazhai.
Password:
230-Welcome, bazhai !
230-This is the SCCXX's FTP server.
230-
230-The local time is: Sat Jan  7 20:17:24 2006
230-
230-The Max users could be handled up to 10.
230-There are 2 users logon this server now.
230-
230-The local directory you exist is /
230-
230-
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxrwxr-x   2 ftpuser  root         1024 Jan  6 12:00 incoming
-rwxrwxr-x   1 ftpuser  root          192 Jan  5 11:38 welcome.msg
226 Transfer complete.

以下是我的配置文件:
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.

ServerName                        "SCCGD.FTP.server"
ServerType                        standalone
DeferWelcome                        on

MultilineRFC2228                on
DefaultServer                        on
ShowSymlinks                        on

#Timeout option
#TimeoutNoTransfer                600
#TimeoutStalled                        600
#TimeoutIdle                        1200

#DefaultRoot                         ~
ServerIdent                        off

#Display welcome message
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                        "-l"

# reverse DNS
UseReverseDNS                        off
IdentLookups                        off

DenyFilter                        \*.*/

#Log Direcory and files

# Port 21 is the standard FTP port.
Port                                21

MaxInstances                        30

# Max clients
MaxClients                        10
MaxClientsPerHost                1        "Only one instance per IP"

# Set the user and group that the server normally runs at.
User                                nobody
Group                                nogroup

Umask                                022
# Normally, we want files to be overwriteable.
<Directory />
   AllowOverwrite                        on
</Directory>
<Limit LOGIN>
   DenyAll
</Limit>
# Allow the user to re-download.
AllowRetrieveRestart                on
AllowStoreRestart                on

<Anonymous /ftp>
    User        ftpuser
    Group        ftpuser
    UserAlias        upload        ftpuser
    UserAlias        bazhai        ftpuser
    AuthAliasOnly        on
    RequireValidShell        off
    AnonRequirePassword on

    <Limit LOGIN>
        AllowUser ftpuser
    </Limit>
    <Limit WRITE>
       DenyAll
    </Limit>
    <Directory incoming/>
      <Limit READ DIRS MKD WRITE STOR>
         AllowAll
      </Limit>
    </Directory>
</Anonymous>

[ 本帖最后由 ioiioi 于 2006-1-8 12:29 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-01-10 20:40 |只看该作者
用被动模式连接
看看精华区里的这篇帖子
   主动FTP vs. 被动FTP 权威解释

论坛徽章:
1
2015元宵节徽章
日期:2015-03-06 15:50:39
3 [报告]
发表于 2006-01-11 11:17 |只看该作者
windows的ftp command不支持passive模式,我试了filezilla,还是不行啊。
而且根据proftpd的配置文档,如果没有passiveports start_port end_port这一行的话,应该是运行在active mode下。

论坛徽章:
0
4 [报告]
发表于 2006-01-12 22:26 |只看该作者
filezilla可以设置被动传输啊

filezilla.jpg (73.96 KB, 下载次数: 28)

filezilla.jpg
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP