Question

SFTP access for wordpress uploads

  • Posted November 19, 2014

Trying to upload theme and media files with filezilla through SFTP. I can’t login with www-data. It doesn’t accept the password. When I try to login with the www-data username in the console, it closes the connection immediately.

Subscribe
Share

You probably should use your regular user, and just add that user to www-data group.

From a command-line:

sudo usermod -a -G www-data $USER

then check it worked by running:

id $USER

you should see a list of all groups that user belongs to, www-data should be listed


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

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.

This question was answered by @sierracircle:

You probably should use your regular user, and just add that user to www-data group.

From a command-line:

sudo usermod -a -G www-data $USER

then check it worked by running:

id $USER

you should see a list of all groups that user belongs to, www-data should be listed

View the original comment