Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a VPS, CentOS, was set up automatically with HyperVM.

I set up the FTP connection with lxadmin.

I've been logging into my server via FTP for weeks.

Today it says:

Status: Connecting to 74.126.30.21:21...
Status: Connection established, waiting for welcome message...
Error:  Could not connect to server
Status: Waiting to retry...
Status: Delaying connection due to previously failed connection attempt...
Status: Connecting to 74.126.30.21:21...
Status: Connection established, waiting for welcome message...
Error:  Could not connect to server

I can still log in via SSH.

  • what kinds of things could have caused this?
  • what are some things I can check/change so I can use FTP again?

Here's my netstat output, how can I tell from this if the "port is listening on the server itself"?

alt text

it doesn't allow me to telnet to the listed ftp port:

alt text

here's the iptables info:

alt text

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Couple Guesses:

1) You made some iptables rules changes to allow the traffic but did not commit them with 'service iptables save'

2) Is the FTP service running?

Does netstat show that the port is listening on the server itself? If so, can you telnet to the port on the server itself, what about remotely?

share|improve this answer
    
how do I tell if the FTP service is running, with my current limited knowledge of linux admin I go to "cd /etc" look around, find nothing... –  Edward Tanguay Jul 30 '09 at 19:04
    
I didn't change anything since yesterday, SSH on port 22 still works, the website still works, just FTP refuses to connect, could this be a problem with my hosting provider, e.g. the virtual machine on which my vps is running? –  Edward Tanguay Jul 30 '09 at 19:06
    
I posted my netstat above. –  Edward Tanguay Jul 30 '09 at 19:20
    
output of 'iptables -L' ? –  Kyle Brandt Jul 30 '09 at 19:21
    
I posted the iptables info, what does that tell me? –  Edward Tanguay Jul 30 '09 at 19:26
show 2 more comments

To show listening ports in netstat, use -l, e.g. netstat -tlnp. You can also use lsof -i tcp:21. To look for a running process use ps, e.g. ps -ef | grep ftpd.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.