-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
get into sudo vim /etc/postgresql/12/main/postgresql.conf
Uncomment, and change the value to '*', this will allow Postgres connections from anyone.
listen_addresses = '*'
Save and exit the file. Next, modify pg_hba.conf to also allow connections from everyone. Open the file with your preferred editor:
sudo vim /etc/postgresql/12/main/pg_hba.conf
Modify this section:
# IPv4 local connections:
host all all 127.0.0.1/32 md5
To this:
# IPv4 local connections:
host all all 0.0.0.0/0 md5
https://www.digitalocean.com/community/questions/remote-access-to-postgresql-with-pgadmin
open the firewall
sudo ufw allow 5432/tcp
Metadata
Metadata
Assignees
Labels
No labels