Solved

linux ftp problem

Posted on 2010-11-29
10
363 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:3XLcom
  • 5
  • 4
10 Comments
 
LVL 30

Expert Comment

by:renazonse
ID: 34233093
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
 
LVL 6

Assisted Solution

by:Kailash Aghera
Kailash Aghera earned 150 total points
ID: 34233175
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
 

Author Comment

by:3XLcom
ID: 34233298
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
 
LVL 30

Expert Comment

by:renazonse
ID: 34233317
So it does connect when you telnet into port 21?
0
 

Author Comment

by:3XLcom
ID: 34233362
no it does not server closes connection directly
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

by:3XLcom
ID: 34233441
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
 
LVL 30

Expert Comment

by:renazonse
ID: 34233579
the syntax should be exactly like so:

telnet movieguy.com 21
0
 

Author Comment

by:3XLcom
ID: 34233605
same result
0
 
LVL 30

Accepted Solution

by:
renazonse earned 350 total points
ID: 34233637
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
 

Author Closing Comment

by:3XLcom
ID: 34233664
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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 46
http to https 3 43
More Than One Website On Same DMZ Server 3 54
linux(debian) mouse poor performance 4 13
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now