Lightsail SFTP permissions denied

If you ever setup a Lightsail instance (Linux) and you’ll try to access it by SFTP client (Filezilla in this case) you will come with this error:

Error: EACCES: permission denied

What’s the problem?

Well, it’s because of the default permissions (by installation). Quickest and easiest way to solve it is by accessing an ssh terminal of your instance and firing up:

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

Thanks to this thread!

Leave a Reply

Your email address will not be published. Required fields are marked *