Database Networking (MOSC)

MOSC Banner

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:

  1. Established TCP Ingress Protocol to port 5432 in my private subnet's security list. (default port for PostgreSQL database, I have double checked this)
  2. Within VM, I have enabled firewall listening and accepting incoming to port 5432.
  3. 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:

  1. I'm able to connect to my VM instance using SSH protocol with the given Public IP.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center