极湖

无不用其“极”

Subscribe to RSS feed

Posts tagged with "vsftpd"

vsftpd 服务启用 passive mode 的设定

, ,

连接 vsftpd 的服务器,总是报错,仔细一看,原来是不接受被动模式( passive mode )。
网上搜了一下,找到了解决办法:
在 vsftpd 的配置文件(一般是 /etc/vsftpd/vsftpd.conf)中追加
#enable passive mode
pasv_min_port=40000
pasv_max_port=40080
pasv_promiscuous=YES

之后重启 vsftpd 即可。命令一般是:
/etc/init.d/vsftpd restart

当然了,被动模式的端口范围要根据实际情况而定,若有防火墙,要看防火墙的设定。
February 2012
S M T W T F S
January 2012March 2012
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29