0

我移植vsftpd到在 linux 3.0.8 内核下运行的基于 ARM 的板上。

当我尝试使用 Filezilla (3.7.3) 与开发板建立 ftp 连接时,出现以下错误:

    Status: Connecting to XXX.XXX.XXX.XXX:21
    Status: Connection established, waiting for welcome message...
    Response:   220 (vsFTPd 3.0.2)
    Command:    USER anonymous
    Response:   331 Please specify the password.
    Command:    PASS **************
    Response:   230 Login successful.
    Command:    OPTS UTF8 ON
    Response:   200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command:    PWD
    Response:   257 "/"
    Command:    TYPE I
    Response:   200 Switching to Binary mode.
    Command:    PASV
    Response:   500 OOPS: socket
    Error:  Failed to retrieve directory listing
    Error:  Connection closed by server
    Command:    PASV
    Response:   500 OOPS: socket
    Error:  Failed to retrieve directory listing
    Error:  Connection closed by server

我的服务器使用的配置如下:

listen=YES
max_clients=2
max_per_ip=4
# Access rights
anonymous_enable=YES
local_enable=NO
write_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
# Security
anon_world_readable_only=YES
connect_from_port_20=YES
hide_ids=YES
pasv_enable=yes
pasv_min_port=0
pasv_max_port=0
# Features
xferlog_enable=YES
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=YES
# Performance
one_process_model=YES
idle_session_timeout=120
data_connection_timeout=300
accept_timeout=60
connect_timeout=60
anon_max_rate=50000
pam_service_name=vsftpd
port_enable=YES
log_ftp_protocol=YES

我的板上没有安装防火墙。

当我将 ftp 连接模式强制为 ACTIVE 模式时,我可以连接到服务器、检索数据、上传文件......

我尝试了几个 ftp 服务器,但我总是面临同样的问题。

知道可能是什么问题吗?

可能是缺少一些内核模块吗?

4

0 回答 0