To modify files via SSH I need to have the files owned by ubuntu:www-data. But for wordpress to be able to install or update plugins I need to have the files owned by www-data:www-data. Any way around changing ownership all the time aside from manually adding the plugins? I have tried setting file/folder permissions to 664 and 775, 2664 and 2775, but it doesn't help. Not sure what the difference is between 644 and 664 or 775 and 755 if the users in the group aren't allowed to do stuff anyways.
Message received when trying to install a plugin via the front-end: To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.