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
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.
Click below to sign up and get $100 of credit to try our products over 60 days!