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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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

/etc/ssh/sshd_config

There search for PasswordAuthentication and set it to Yes

Regards,
KDSys

Submit an Answer