CentOS Can't connect to FTP
Posted
by
Steven
on Server Fault
See other posts from Server Fault
or by Steven
Published on 2012-09-29T13:54:53Z
Indexed on
2012/09/29
15:40 UTC
Read the original article
Hit count: 203
I'm having troubles connecting to my ftp server. Here's what it says,
Status: Connected Status:
Retrieving directory listing...
Command: PWD
Response: 257 "/home/sxxxn"
Command: TYPE I Response:
200 Switching to Binary mode. Command: PASV
Error: Connection timed out
Error: Failed to retrieve directory listing
My vsftpd.conf file:
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to xxxx.com
xferlog_std_format=NO
chroot_local_user=NO
chroot_list_enable=NO
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
pasv_enable=YES
pasv_min_port=3000
pasv_max_port=3050
pasv_address=64.xx.xx.xxx
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.userlist
And I've got these 2 in my iptables
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3000:3050 -j ACCEPT
I've also disabled selinux.
© Server Fault or respective owner