By belakey
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.