Can't access my server (upload files) through FTP (Filezilla)

December 3, 2019 140 views
Ubuntu WordPress DigitalOcean

Hi

Thought of trying through community see if I can fix what’s been happening for over two weeks.

I got a droplet a year ago, followed all the steps in the guides to set up my Wordpress site through puTTY and the whole FTP with VSFTPD guide for Ubuntu.

Everything was great I could upload my files to the directories without any problem, only thing that was bugging me was that every 3 months when I updated my SSL certificates with certbot, I needed to disable UFW and then enable it again for Filezilla to work without issues cause I was getting a timed out connection error.

Now this month, I started getting this error:
Status: Connection established, waiting for welcome message…
*Response: 220 (vsFTPd 3.0.3)
Command: AUTH TLS
Error: Could not connect to server
*

Got told it might be the SSL/TLS certificate one put during the VSFTPD config that might had expired since it’s a 365 days certificate.

I input everything again to regenerate the certificate, checked the validity, it says it expires in 2020 this month. But still getting the error.

Have read a lot of guides, articles and do everything on my knowledge, but haven’t been able to work or connect like I used to and need to.

If I do a STFP with SSH key, it does connect through my user and I can
access the server (where all the directories re website are) but can’t upload anything cause it says permissions denied. Root user is disable as per instructions in most sites and cause it was also disable for security in puTTY.

Tried once enabling root user, but no directories (like shown in user) are there or available since the user with all the folders is the one I created with VSFTPD.

Only workaround is giving chmod 777 permissions to the folders I need to access, and then it let’s me upload through STFP with my user.

I really want to be able to access with FTP like I used to before the AUTH TLS error.

Really appreciate anyone that knows a possible solution.

2 Answers

Hello, @NckDmn

What you can do is to follow the listed steps in this tutorial and see if you’re missing any of the configuration and then adjust it:

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-18-04

I’ve had a similar issue on a dev droplet few weeks ago and I’ve simply followed the tutorial from the start and did everything from scratch again.

Let me know if you have any questions.

Regards,
Alex

by Melissa Anderson
by Kathleen Juell
FTP, short for File Transfer Protocol, is a network protocol that was once widely used for moving files between a client and server. It has since been replaced by faster, more secure, and more convenient ways of delivering files. In this tutorial, we'll show you how to configure vsftpd to allow a user to upload files to his or her home directory using FTP with login credentials secured by SSL/TLS.
  • Hi

    Thanks for the reply.

    How do I wipe all the VSFTPD configuration to start from scratch?
    Also if I do that, will it affect everything that is currently hosted on the droplet? and in terms of already created user for the sessions.

Hello, @NckDmn

You can simply go through the listed steps from the tutorial:

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-18-04

And make sure everything is installed/configured. If you have any questions regarding any of the steps, just let me know.

As for your other question, there is a chance that something might fail to work if you re-install some packages and etc and that’s why it will be the best if you create a backup of your droplet before you go ahead and make any configuration changes.

Let me know how it goes.

Regards,
Alex

by Melissa Anderson
by Kathleen Juell
FTP, short for File Transfer Protocol, is a network protocol that was once widely used for moving files between a client and server. It has since been replaced by faster, more secure, and more convenient ways of delivering files. In this tutorial, we'll show you how to configure vsftpd to allow a user to upload files to his or her home directory using FTP with login credentials secured by SSL/TLS.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!