Report this

What is the reason for this report?

How do I add IP addresses to 'pg_hba.conf'?

Posted on October 9, 2019

Hello I’m trying to connect an ETL service to a managed Postgres database, but get the following error:

"FATAL: no pg_hba.conf entry for host \"<IP_ADDRESS>\", user \"<DB_USER>\", database \"<DB_NAME>\", SSL off"

How would I add the following to pg_hba.conf:

host replication [stitch_username] [ip_address_1] md5
host replication [stitch_username] [ip_address_2] md5
host replication [stitch_username] [ip_address_3] md5
host replication [stitch_username] [ip_address_4] md5

As far as I understood, when I added the IP addresses to Trusted Sources that they would also be added to pg_hba.conf.



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!

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.

I don’t think that this would be possible because it’s a managed service and this might break the integrity. Have you tried checking this with the DO’s support team?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.