Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an EC2 RHEL-6.5_GA-x86_64 instance running.

AWS Management opened all incoming and outgoing traffic from/to all ports.

iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere

Here's the FTP log. I can call ls on some directories, but a directory that has lots of files fails. My theory is that the directory contains special characters in file names and it confuses ftp.

ftp> open *******.com 21
Connected to *******.com (xx.xxx.xxx.125).
220 FTP Server.  All transfers are logged.
Name (*******.com:user): xxxxxxxx
331 User name okay, need password for xxxxxxx.
Password:
230 User xxxxxxx logged in from xx.xxx.xxx.90
Remote system type is UNIX.
ftp> ls
227 Entering Passive Mode (xx,xxx,xxx,125,78,22)
150 File status okay; about to open data connection.
drwx------   3 user group            0 Dec 29  2011 files
226 Closing data connection.
ftp> ls /files/xml
227 Entering Passive Mode (xx,xxx,xxx,125,78,26)
150 File status okay; about to open data connection.
drwx------   3 user group            0 Jan 10  2012 10127
drwx------   3 user group            0 Jan 10  2012 10136
drwx------   3 user group            0 Jan 10  2012 10146
drwx------   3 user group            0 Mar 19  2012 10191
drwx------   3 user group            0 Apr 20  2012 10705
drwx------   3 user group            0 Aug  2  2012 10747
drwx------   3 user group            0 Jan 15 14:27 11430
drwx------   3 user group            0 Jul  2 10:21 15708
226 Closing data connection.
ftp> ls /files/xml/11430
227 Entering Passive Mode (xx,xxx,xxx,125,78,28)
150 File status okay; about to open data connection.
226 Closing data connection.
ftp> ls /files/xml/15708
227 Entering Passive Mode (xx,xxx,xxx,125,78,36)
150 File status okay; about to open data connection.

any ideas? if this is a problem with special characters in file names, how do i solve the problem? i have no control of the ftp server.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.