Amazon Lightsail WordPress Bitnami SFTP Permission Denied Error

After setting up new Lighstail instances I realized I was having a bunch of trouble transferring files via SFTP. Turns out files/folders created by Apache can’t be modified. So one needs to adjust permissions for SFTP to work properly. Here are a couple of commands taken from the Bitnami¬†forums that can help:


sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content
sudo chmod -R g+w /opt/bitnami/apps/wordpress/htdocs/wp-content