- Plesk for Linux
Where is the location of the
pg_hba.conf file for PostgreSQL?
How to edit the
pg_hba.conf configuration file?
- Log into the server via SSH.
- Execute the command below, to get the PostgreSQL version:
# psql --version
psql (PostgreSQL) 9.4.24
- Using the vi text editor open the
/etc/postgresql/9.4/main/pg_hba.conffile and perform the required changes.
Note: in case the PostgreSQL version differs from the 9.4, replaced the 9.4 in the path above with the corresponding version.