How to configure FTP for Ubuntu

January 19, 2014 17.8k views
Hi All, I am running Ubuntu 12.04 and trying to get FTP setup on my Droplet. I followed all the instructions here (including the SSL setup): But when I try to connect I just get a timeout error. Has anyone had to configure anything specifically to get FTP working outside of these steps? I am also running Ghost on the Droplet if that might have anything to do with it... Thanks!
5 Answers
Is vsftpd running?
sudo service vsftpd restart
Thanks for the reply! Yup, its running:

vsftpd stop/waiting
vsftpd start/running, process 5840

Any other tips to help me figure out why I can't connect?
Hmm. Is it listening on port 21?
sudo netstat -plutn | grep 21

Also, I highly recommend using SFTP instead of FTP.
by Pablo Carranza
This article will teach you how to use Filezilla to transfer and manage files securely on your VPS.
Turns out it was due to the IP tables rejecting connections.. had to set the tables to allow connection on port 21. Thanks for your help! And yeah I am using SFTP, just wanted to figure out why FTP wasn't working in general for my own sanity. :)
  • May I ask how you got SFTP running? I can't seem get it to work...
  • If you can SSH into your server, you should be able to use SFTP. The credentials will be the same. If you're still having problems, please open a new question describing what steps you've already tried.
I set up an ftp server on my droplet and expect to be able to log in using a client of my choice into the server to transfer files. but i cannot log in with my droplet's credentials.. any help?
Have another answer? Share your knowledge.