In order to maintain the integrity of Hosted DHIS 2 servers, BAO Systems does not allow back end access to production servers. This includes SSH access and direct access to the database. We strongly encourage using the SQL View functionality of DHIS 2 - https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-master/visualizations.html#webapi_sql_views
If you'd like to run a query against your instance, open a ticket and someone from the BAO Systems Team will execute the query for you.