Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to postgres database from computer different from the computer that hosts the database #10

Open
zipperer opened this issue Nov 30, 2023 · 0 comments
Assignees

Comments

@zipperer
Copy link
Owner

Execute commands from postgres_script.txt

= Connect to database from a computer different from the computer that hosts the database =

open /etc/postgresql/14/main/postgresql.conf
find listen_addresses. remove # at beginning of line. replace 'localhost' with '*'.
save and exit.

open /etc/postgresql/14/main/pg_hba.conf.
at bottom of file, add new line:
hostssl all             all             0.0.0.0/0               scram-sha-256
save and exit.

$ service postgresql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant