相关疑难解决方法(0)

无法在连接到 vsftpd 的 Filezilla 中检索目录列表

新手在这里。

起初我无法连接到 vsftpd,但我在 iptables 中添加了端口 21(我在 Centos 6 上运行)并设法使其工作。但是现在,我无法通过Command: LISTFilezilla

这是日志:

Status: Connecting to 162.xxx.xx.xxx:21...
Status: Connection established, waiting for welcome message...
Response:   220 (vsFTPd 2.2.2)
Command:    USER cjflores
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:   227 Entering Passive …
Run Code Online (Sandbox Code Playgroud)

iptables ftp centos6 vsftpd

6
推荐指数
1
解决办法
4万
查看次数

Vsftpd 被动回复 0,0,0,0 地址,即使 pasv_address 正确

我在 vsftpd 中有以下配置

listen_ipv6=YES
allow_writeable_chroot=YES
seccomp_sandbox=NO
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=<Elastic ip from amazon aws ec2 instance>
pasv_promiscuous=YES
Run Code Online (Sandbox Code Playgroud)

但是,当尝试使用 FTP 连接到服务器时,我收到以下警告,

Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (0,0,0,0,4,1).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Directory listing of "/" successful …
Run Code Online (Sandbox Code Playgroud)

selinux ftp vsftpd

4
推荐指数
1
解决办法
6112
查看次数

标签 统计

ftp ×2

vsftpd ×2

centos6 ×1

iptables ×1

selinux ×1