1. First, we need to connect to another computer or a remote server using “ssh”. In the command line, type:
ssh username@remote_host

Replace 'username' with your actual username and 'remote_host' with the IP address or hostname of the remote server.

For example:

ssh [email protected]
  1. Use podman to run a shell inside the postgres container.
podman exec -it postgres-container bash

You can replace “postgres-container” with another container name.

  1. Then, you can psql into the postgres database!
psql -U your_db_username -d your_db_name