Ubuntu – FTP refuses any and all connections (vsftpd)


Even on localhost using the ftp command, through the web server on WordPress, on my personal computer through FileZilla, in short, I need my FTP server but it refuses to let anyone connect.
Using SFTP works perfectly, but even when I enable SSL on vsftpd which I think is the same thing, it still doesn't work.
I've followed many tutorials on how to set it up, tried wiping my server multiple times, nothing works.

Using netstat -tlpn returns this result, it seems the process is running but is not listening, even though in the config file listen is set to YES.

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0*               LISTEN      9563/mysqld     
tcp        0      0    *               LISTEN      972/sshd        
tcp6       0      0 :::58623                :::*                    LISTEN      25429/java      
tcp6       0      0 :::49505                :::*                    LISTEN      25429/java      
tcp6       0      0 :::80                   :::*                    LISTEN      22955/apache2   
tcp6       0      0 :::8080                 :::*                    LISTEN      25429/java      
tcp6       0      0 :::22                   :::*                    LISTEN      972/sshd

Best Answer

The vsftpd service is not running and hence is not listening on port 21 or any preconfigured port. As a result you are getting the connect: connection refused error message every time while using an FTP client to connect to the server. I think you should check the setup procedure and configuration files for sorting out the issues. This and this might be a very good place to start.

Related Question