How to configure htdocs permissions for the development VM?

I have downloaded Bitnami's Magento VM (OVA, using it in VMware on Windows). It's a Debian 9 (Debian GNU / Linux 9.8 (extension)) with Apache / 2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve Magento from / opt / bitnami / apps / magento / htdocs
enter the description of the image here
The user I can use to log in to SSH is the bitnami user, who is not allowed to modify the magento directory files. All services are configured to run with another user, such as daemon or mysql.
enter the description of the image here

What should I do to be able to open the magento directory via SFTP with an IDE on my host system and also be able to deploy files?
enter the description of the image here

From what I understood, I could connect to SSH, leave the terminal open to run commands with the help of bin / magento or use git in the directory and ask PhpStorm on my host system to modify and deploy files, while I can use the bitnami vm IP address to open the website in my browser.

Edit .: I just realized, there is a magento installation in ~ / apps / magento / htdocs why?