linux不能通过ftp连接,linux – 无法在pasive模式下连接ftp

我尝试连接到我刚刚配置的ftp,但是使用FileZilla,我得到以下日志

Status: Connecting to x.x.x.x:21...

Status: Connection established, waiting for welcome message...

Response: 220 (vsFTPd 2.3.5)

Command: USER huntsnap

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 "/home/my/home/dir"

Command: TYPE I

Response: 200 Switching to Binary mode.

Command: PASV

Response: 227 Entering Passive Mode (10,38,106,212,248,2).

Status: Server sent passive reply with unroutable address. Using server address instead.

Command: LIST

Error: Connection timed out

Error: Failed to retrieve directory listing

我在Ubuntu服务器上配置了vsftpd,但不知道它有什么问题.

vsftp.conf文件

listen=YES

anonymous_enable=NO

local_enable=YES

write_enable=YES

local_umask=022

dirmessage_enable=YES

use_localtime=YES

xferlog_enable=YES

secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=ftp

rsa_cert_file=/etc/ssl/private/vsftpd.pem

userlist_file=/etc/vsftpd.userlist

userlist_enable=YES

userlist_deny=NO

local_root=/home/to/my/home/

dirlist_enable=YES

download_enable=YES

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值