how can i edit pg_hba.conf in my managed database

i want to log into my managed database cluster to edit pg_hba.conf using ssh but any time i try i get access denied.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I had the same issue, try adding this to the end of your connection string.

Trust Server Certificate=true;


With the Managed Database solutions you don’t have SSH access to the servers and you can’t edit the configuration files, as that way you are risking of breaking the managed cluster. This is all done by the DigitalOcean engineers.

What are the exact changes that you need to make?

Regards, Bobby