Question

SFTP access for wordpress uploads

Posted November 19, 2014 2.3k views

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.

1 comment
  • 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

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

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

Submit an Answer