Instructions for Direct Database Integration

Prerequisites:
- SSH Client: Install the PuTTY SSH client on your PC.
- Postgres ODBC Driver: Download and install the Postgres ODBC Driver on your PC.
- Static IP: Ensure you have a static IP or static IP range from which you will access the database.
Provided by Mosaic:
- SSH Key: A private SSH key for PuTTY, corresponding to a public key on Mosaic's bastion host.
- Connection Details: Database hostname, port, username, and password, along with the IP Address of the Mosaic bastion.
Part 1: Setting Up the SSH Tunnel Using PuTTY
-
Launch PuTTY:
- In the "Session" section, enter the public IP address of the Mosaic bastion.
- Set the port to 22 (default for SSH).
-
Configure SSH Key for Authentication:
- Navigate to Connection > SSH > Auth > Credentials.
- Click "Browse" to select the provided private key file.
-
Set Up Port Forwarding:
- Go to Connection > SSH > Tunnels.
- Enter 5433 in the "Source port" field.
- In the "Destination" field, type the database hostname followed by
:5432
. - Select "Local" and "Auto", then click "Add".
- You should see your newly added port forwarding in the “Forwarded ports” section, after clicking “Add”.
-
Start the SSH Session:
- Return to the "Session" page, save the session as “Mosaic DDI Connection”.

- Click "Open" to initiate the session. Enter
ec2-user
when prompted for a username.


Note:
Keep the PuTTY session open to maintain database access through the secure connection.
Part 2: Configuring PostgreSQL ODBC Driver
- Open ODBC Data Source Administrator and click “Add”.

- Select “PostgreSQL Unicode” from the list and click “Finish”.

- Configure the connection:
- Data Source Name:
Mosaic
- Description:
Database connection for Mosaic
- Database: Provided by Mosaic
- SSL Mode:
require
- Server:
localhost
- Port:
5433
- Username and Password: Provided by Mosaic
- Data Source Name:

- Click “Test” to verify the connection (ensure your PuTTY SSH session is active).

Part 3: Connecting Power BI to Mosaic Data via SSH Tunnel
- Launch Power BI and navigate to
Report
>Get Data
>ODBC
.


- Select your ODBC connection (e.g.,
Mosaic DDI
).

- Enter the database Username and Password, and click "Connect".

- Proceed to import and utilize your data as needed.

Updated 9 months ago