Network
Identify connections using a port
sudo lsof -i tcp:5432
Check postgres connection
~ psql -h localhost -p 5432 -d postgres -U postgres
sudo -i -u postgres
Configure pgsql:
cd /etc/postgresql/16/main/sudo nano postgresql.conf
change the allowed hosts and the port
Get a machine IP address
ip addr show
Allow a host
sudo nano pg_hba.conf
Commentaires
Enregistrer un commentaire