My question is necessarily asking for the process of setting up openssh-server, however I want to create an account on my server that has access to specific domain under /var/www/exampledomain.com. Example domain's ownership is www-data:wp-user (wp-user being the user that gives the wordpress installation the ability to do sFTP updates/operations).
So to put it concisely, I want to create a user that is able to have the same rights as wp-user. I essentially want to use sftp-user to modify files that belong to www-data:wp-user.
I've tried many guides like:
http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/ (scroll down to just sFTP)
- https://julienliabeuf.com/setup-cloud-server-sftp/
- A few others...
The process seems stupid simple however I can't seem to achieve my goal. Can this be done at all? Is there a better ownership scheme?
Either way, thanks in advance.