Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2542541
  • 博文数量: 271
  • 博客积分: 6659
  • 博客等级: 准将
  • 技术积分: 3141
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-17 10:24
文章分类

全部博文(271)

文章存档

2016年(2)

2015年(12)

2014年(7)

2013年(19)

2012年(22)

2011年(81)

2010年(128)

分类: 系统运维

2016-06-29 17:09:11

在aws EC2上搭建的vsftpd 使用FTP工具PASV 模式连接过程中 list 报错

通过以下方式解决

Just had this same exact issue... this typically only affects GUI ftp clients that use a passive mode (which is pretty common). For instance, when using the standard ftp command line tool, I was able to successfully login and upload files to my ftp server.

The steps to correct are:

1) Add the following settings to your /etc/vsftpd.conf file:

pasv_enable=YES
pasv_min_port=64000
pasv_max_port=64321
port_enable=YES 

2) Also add one of the following config chunks to your /etc/vsftpd.conf file, based on your situation (either way, this needs to resolve to a public accessible IP):

a:

pasv_address=
pasv_addr_resolve=NO


参考链接:  

最终配置文件如下:

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
guest_enable=YES
guest_username=vsftpd
user_config_dir=/etc/vsftpd/vsftpd_user_conf
anon_umask=000
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=30020
port_enable=YES
pasv_addr_resolve=NO
pasv_address=xx.xx.xx.xx #EIP
listen_port=2121
tcp_wrappers=YES
dual_log_enable=YES
vsftpd_log_file=/var/log/vsftpd.log
use_localtime=YES



阅读(2587) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~