vsftp stopped working after installing Main-in-a-box

September 22, 2016 97 views
Firewall Networking Ubuntu

i have followed this tutorial to set up Mail server in existing Web server droplet.

everything went well, but VSFTP stopped working

i tried this command to see the ports

sudo netstat -ntlp | grep LISTEN

and VSFTP is listening on

tcp     0    0*    LISTEN   17250/vsftpd

i can able to access it from my local machine but its not working from external machines.

i used to access it like ftp://mydomain.com
but its not working now. how can i fix this?

I changed my hostname recently, is it going to affect any on VSFTP?

1 Answer

The mailinabox setup you linked auto-configures a firewall on your droplet with UFW. You would have to open the port(s) you wish to use for vsftpd in order to access the service.

All droplets also come with an SFTP service running on port 22 (as part of the SSH server) which you can access with a client like filezilla. SFTP is fully encrypted and provides a much more secure way to manage your files.

by Shaun Lewis
Learn how to setup a firewall with UFW on an Ubuntu / Debian cloud server.
  • Thank you. glad to know that droplets come with SFTP.
    so can i just uninstall VSFTP and start using SFTP?

    • Yes. The SFTP service is there by default and unless you've disabled it in your ssh configuration it will be available.

Have another answer? Share your knowledge.