Editing PostgreSQL pg hba.conf

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
 
https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
 
* HBA Host Based [[Authentication]]
 
  
 
<code>[[pg_hba.conf]]</code> client [[authentication]] configuration file.
 
<code>[[pg_hba.conf]]</code> client [[authentication]] configuration file.
Line 11: Line 9:
  
  
[[Amazon Linux 2]]:
+
[[Amazon Linux 2]]: <code>[[/usr/share/pgsql/pg hba.conf.sample]]</code>
* <code>[[/usr/share/pgsql/pg_hba.conf.sample]]</code>
+
 
* <code>[[/var/lib/pgsql/data/pg_hba.conf]]</code> (<code>[[sudo service postgresql initdb]]</code>)
 
  
 
https://www.postgresql.org/docs/11/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SETTINGS
 
https://www.postgresql.org/docs/11/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SETTINGS
Line 41: Line 38:
 
  host    replication    all            127.0.0.1/32            md5
 
  host    replication    all            127.0.0.1/32            md5
 
  host    replication    all            ::1/128                md5
 
  host    replication    all            ::1/128                md5
 
== Errors ==
 
* <code>[Nest] 41  - 09/27/2022, 10:12:12 PM  ERROR [ExceptionHandler] [[no pg_hba.conf entry for host]] "20.10.2.58", user "your-user", database "your-db", SSL off</code>
 
* <code>[[no pg_hba.conf entry for host]]</code>
 
 
  
 
== Related terms ==
 
== Related terms ==
Line 51: Line 43:
 
* <code>[[/etc/postgresql/12/main/postgresql.conf]]</code>
 
* <code>[[/etc/postgresql/12/main/postgresql.conf]]</code>
 
* <code>[[$HOME/.pg_service.conf]]</code>
 
* <code>[[$HOME/.pg_service.conf]]</code>
* <code>[[ident]]</code>
+
* <code>[Nest] 41  - 09/27/2022, 10:12:12 PM  ERROR [ExceptionHandler] [[no pg_hba.conf entry for host]] "20.10.2.58", user "your-user", database "your-db", SSL off</code>
 +
* <code>[[no pg_hba.conf entry for host]]</code>
  
 
== See also ==
 
== See also ==
* {{pg_hba.conf}}
 
 
* {{PostgreSQL}}
 
* {{PostgreSQL}}
  
  
 
[[Category:PosgreSQL]]
 
[[Category:PosgreSQL]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: