How to connect to the PostgreSQL RDBMS server from Windows
Connecting to RDBMS from MacOS
Follow these steps on a Mac to generate your public/private keys and access the PostgreSQL server.
Terminal (Terminal.app) is the terminal emulator included in the macOS operating system. You can use this application to generate your SSH key.
- Open a new Finder window
- Navigate to the Applications folder
- Navigate to the Utilities folder
- Open the Terminal app
From Terminal, follow these instructions (see screenshot below):
ssh-keygen -t rsa
- Hit return to use the default file / location
- Enter a passphrase
- Enter your passphrase again
In the screenshot below:
(a)is the location and filename of your private key
(b)is the location and filename of your public key
(c)are the contents of your public key
NoteYou will need to provide the contents of
(c)to your Medic contact or RDBMS administrator. It should start with
ssh-rsaand end with something that looks like an email address. This information is not sensitive and can be shared over slack, github, etc…
Connect to PostgreSQL
Once your public SSH key has been installed on RDBMS, the administrator will provide you with login credentials to the SSH server as well as for PostgreSQL. You should be able to access PostgreSQL from a SQL client using those credentials. Some common SQL clients include: pgAdmin, DBeaver, Postico.
From your SQL client, use the settings mentioned below to connect. Be sure to select the Private Key that you generated above.
|SSH Password||N/A - Use Private Key|
|Private Key||Use the private key generated above|
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.