0

I have a ubuntu server and am trying to connect using filezilla but keep getting connection timed out.

I have done an nmap and the port that is opened for ftp is 21.

I have gone onto the server and done an ftp on localhost and it works fine.

I have also tried to ftp via terminal command but connection times out on there as well.

Not sure what else i can do allow ftp?

  • -1 For using FTP. Sorry, call my insensitive, but there is no good reason to be using such an insecure, inefficient, broken protocol. Use scp/sftp instead. – EEAA Mar 17 '14 at 20:11
  • 1
    It wasn't your question, and I'm not going to downvote you, but EEAA is right that scp/sftp is better. (Because FTP is insecure.) – Katherine Villyard Mar 17 '14 at 20:13
  • @KatherineVillyard - sometimes a downvote seems to be the only way to get people's attention around here. :) Honestly though, I'm so sick of seeing people asking about technologies that have no business in modern sysadmin (cPanel/webmin/etc. also fall into this category), that I've just started downvoting them carte blanche. Maybe that's inappropriate, but whatever, it's worth losing a few rep points for. – EEAA Mar 17 '14 at 20:17
  • Cheers guys but still timing out – tjhack Mar 17 '14 at 20:17
  • 1
    @tjhack - Great! Ask that as a separate question, though. – EEAA Mar 17 '14 at 20:25
3

Check the firewall on the client machine, or set the mode to passive.

There are actually two separate connections, a data channel and a command channel. It's common for the data channel to be blocked by the client machine's firewall.

This Stack Overflow answer explains it well.

The comment thread above reminds me that I should probably point out that FTP isn't secure. Unless you have a business reason that requires FTP, you might want to consider SCP or SFTP instead. (Bonus: They don't include the port wackiness that you're running into.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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