/etc/vsftpd/vsftpd.conf 配置如下
anonymous_enable=YES
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=no
虚拟机中FTP连接自己成功的:
[centos@localhost ~]$ ftp 192.168.1.11
Connected to 192.168.1.11 (192.168.1.11).
220 (vsFTPd 2.2.2)
Name (192.168.1.11:centos): centos
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
但是WINDOWS的宿主ftp连接不上:
状态: 正在连接 192.168.1.11:21...
错误: 连接超时错误: 无法连接到服务器
状态: 正在等待重试...
状态: 正在连接 192.168.1.11:21...
半天了还没搞定,请各位指点一下原因和解决办法啊,谢谢!!

