Guide – How To Start – PostgreSQL 15 on Linux 9 (Based on Red Hat®) on Amazon

PostgreSQL 15 on Linux 9 (Based on Red Hat®) ensures reliable and scalable database operations on a modern Red Hat-based environment for business-critical tasks.

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

Connecting and configuring PostgreSQL 15 on RHEL 9 using pgAdmin 4 through SSH Tunnel

When starting the VM, the server starts automatically.

Getting the password to the database

  1. To manage the PostgreSQL server manually, you should connect to a VM. 
  • Go to the “SSH” section in the left panel (1) and then to “Auth” (2).

In the “Auth” section, click “Browse” and specify the path to the .ppk file you received earlier.

  • Go to the home page of “Session”, enter the IP address of the VM (1), and click “Open” (2).
  • In the opened console, you will need to enter the login ec2-user
  1. To get the password, enter the command sudo cat /root/postgres_credentials

Save the password

  1. To check the server version enter

$ psql -V

Connecting to the Postgresql server

  1. Go to the pgAdmin download page – Download, select the desired version, download, and install it
  1. Run pgAdmin. By default, you will be asked to set a master password

Set the password and click “OK”.

  1. Click “Add New Server” on the main page
  1. In the pop-up window, enter the name of your connection in the Name field.
  1. Go to the Connection tab. Enter “127.0.0.1” in the Host name/address field (1), enter the password from step 2 of the previous chapter in the Password field (2), and enable Save password (3)
  1. Go to the SSH Tunnel tab and click the Use SSH tunneling switch (1), in the Tunnel host field enter the address of the virtual machine (2), in the Username field type ubuntu (3), select Identity file (4) and enter the path to your .pem file in the Identity file field (5). Click “Save” (6) to confirm the changes and establish the connection
  1. Your connection is ready

More information – PostgreSQL 15 Documentation

Website Built with WordPress.com.

Up ↑