linux ftp problem

I am using centos 5.4 with plesk 10.0.1 and when i try to connect to ftp i got the following error :


421 Service not available, remote server has closed connection

i have tryed to ping and resolve domain domain both of them has been succed and i 've checked what if  a program listen 21 port :
lsof -i tcp:21
but it seems ok as described here http://help.godaddy.com/topic/93/article/1587
what should be the problem
3XLcomAsked:
Who is Participating?
 
Britt ThompsonConnect With a Mentor Sr. Systems EngineerCommented:
Same answer...it's either being blocked by a firewall or the ftp service is not running. You need to check your router/firewall settings and make sure port 21 is open and forwarded to the correct IP and also check your software firewall if you have one.

Try running a telnet on the local server from the terminal:

telnet localhost 21

If it connects, it's a firewall issue.
0
 
Britt ThompsonSr. Systems EngineerCommented:
Can you telnet into the server on port 21:

telnet server.address.com 21

If not, then it's likely the service is not running or it's firewalled
0
 
Kailash AgheraConnect With a Mentor Commented:
It seems some firewall issue. Can you ftp locally? I mean does it ask for username if you type ftp localhost on your server (via SSH)?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
3XLcomAuthor Commented:
yes i tryed locally but it does not work  and also i have checked what if it listen 21 port but it seems every thing is ok.
0
 
Britt ThompsonSr. Systems EngineerCommented:
So it does connect when you telnet into port 21?
0
 
3XLcomAuthor Commented:
no it does not server closes connection directly
0
 
3XLcomAuthor Commented:
Microsoft Telnet> open
( to ) moviegy.com:21
Connecting To moviegy.com:21...Could not open connection to the host, on port 23
: Connect failed
Microsoft Telnet>
0
 
Britt ThompsonSr. Systems EngineerCommented:
the syntax should be exactly like so:

telnet movieguy.com 21
0
 
3XLcomAuthor Commented:
same result
0
 
3XLcomAuthor Commented:
Thanks for all your help i have found the answer :

if inetd not working try to use the proftp

edit /etc/proftpd.conf

change Servetype from inetd to Standalone

kill first the current ftp process

linux:# lsof -i tcp:21
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
inetd 25261 root 0u IPv4 452954 TCP *:ftp (LISTEN)

linux:# kill 25261

then run the proftp

linux:# /usr/sbin/proftpd
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.