Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save simkimsia/75995639e575707db5f1 to your computer and use it in GitHub Desktop.

Select an option

Save simkimsia/75995639e575707db5f1 to your computer and use it in GitHub Desktop.
pg_hba.conf for 9.3 so that I can access via TCP/IP connection over remote connection

how to use postgres

By default, should never change the postgres user password

See http://serverfault.com/a/325596/61030

To access the database as postgres,

  1. go into the server
  2. use sudo -u postgres psql postgres
# "local" is for Unix domain socket connections only
local all postgres peer
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 ident
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment