Access Denied error message when trying to upload images

Check out Configure an S3 compatible object storage provider for uploads and Set up file and image uploads to S3.

If you can ssh to your server and there is a /var/discourse then there is a reasonable chance that you have a "standard insfall’ (see Discourse official Standard Installation).