How to establish remote connection to PostgreSQL database in VM Instance?
Oracle Products:
Compute->Instance using Oracle-Linux-8.8-2023.07.31-1
Connecting from MacOS Monterey 12.6.6
Here are the steps I have taken:
- Established TCP Ingress Protocol to port 5432 in my private subnet's security list. (default port for PostgreSQL database, I have double checked this)
- Within VM, I have enabled firewall listening and accepting incoming to port 5432.
- I have updated my PostgreSQL config files, both pg_hba.conf to allow all IP connections using "trust", and postgresql.conf to listen to all incoming IPs using '*'.
Things I am able to do:
- I'm able to connect to my VM instance using SSH protocol with the given Public IP.
0