Why can't my newly created "ftpuser" connect via Filezilla to server?

January 10, 2020 96 views
Nginx Configuration Management LEMP Ubuntu 18.04

I wanted a secure way to manage the /var/www/ folder. My regular user can’t upload to the /var/www/ folder without using root user account via Filezilla. I normally log in using an ssh key which works fine.

I then followed this guide to create a ftpuser with a password that would manage the /var/www/ folder and also be it’s home directory. It was meant to connect to Filezilla but when i try to connect i get the error:

Error: FATAL ERROR: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server

Article: https://guides.wp-bullet.com/adding-sftp-user-correct-permissions-nginx-php-fpm/

I got up to the finalizing stage.

The only way I can access the ftpuser is via the terminal, where I need to do

su - ftpuser and prompt to enter password. 

uid=1001(ftpuser) gid=33(www-data) groups=33(www-data)

What am I missing?

1 Answer

Hi @belakey,

Based on the error, I would assume you would either need to use your SSH key or allow PasswordAuthentication on your droplet.

Filezilla can use existing ssh key, but cannot generate ssh key itself.

As for turning on PasswordAuthentication on your droplet, SSH to it and open


There search for PasswordAuthentication and set it to Yes


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!