Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ajkovar/c86789f5f494e0e43250a6563bc53c89 to your computer and use it in GitHub Desktop.
Save ajkovar/c86789f5f494e0e43250a6563bc53c89 to your computer and use it in GitHub Desktop.
Had to add line to pg_hba.conf:
You need to open file called /var/lib/pgsql/data/pg_hba.conf. Login as postgres user using su command:
$ su - postgres
$ vi /var/lib/pgsql/data/pg_hba.conf
Now append following line. Let us say you would like to give access to 192.168.1.0/24 network:
host all all 192.168.1.0 255.255.255.0 trust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment