psql
command to attempt a manual connection:psql -h <host> -p <port> -U <user> -d <database>
sudo systemctl status postgresql
sudo ss -tnlp | grep postgres
pg_hba.conf
file has appropriate entries for your connection type (host, local, etc.) and that your user is allowed to connect from your current IP address.sudo less /var/log/postgresql/postgresql-<version>-main.log
(Perfect for DevOps & SREs)
(Perfect for DevOps & SREs)