Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I'm trying to connect Power BI Desktop to a PostgreSQL database hosted on Amazon RDS using an SSH tunnel. However, I keep encountering the following error:
"An error happened while reading data from the provider: 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'"
Here’s what I’ve done so far:
Despite all this, Power BI fails to connect. Could anyone suggest the steps I might be missing or need to recheck? Are there any specific configurations in Power BI Desktop, RDS, or SSH that I need to focus on?
Thanks in advance for your help!
Solved! Go to Solution.
Hi, @D17
Make sure your SSH tunnel is configured correctly. You can use PuTTY or OpenSSH to create tunnels. Also check your security group settings again to make sure that inbound traffic from your local machine IP address to port 5432 is allowed. At the same time, make sure that there are no local firewall settings blocking the connection.
Amazon RDS for PostgreSQL enforces SSL connections. Make sure Power BI is configured to use SSL when you try to connect.
Power BI requires an Npgsql driver to connect to PostgreSQL. Make sure the driver is installed and configured correctly on your machine. You can check this post:
Solved: Connecting to PostgresSQL hosted on AWS RDS? - Microsoft Fabric Community
When setting up a connection in Power BI, use the appropriate connection string format. You can refer to the following post:
Solved: Connect Desktop Power BI to AWS RDS postgreSQL - Microsoft Fabric Community
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @D17
Make sure your SSH tunnel is configured correctly. You can use PuTTY or OpenSSH to create tunnels. Also check your security group settings again to make sure that inbound traffic from your local machine IP address to port 5432 is allowed. At the same time, make sure that there are no local firewall settings blocking the connection.
Amazon RDS for PostgreSQL enforces SSL connections. Make sure Power BI is configured to use SSL when you try to connect.
Power BI requires an Npgsql driver to connect to PostgreSQL. Make sure the driver is installed and configured correctly on your machine. You can check this post:
Solved: Connecting to PostgresSQL hosted on AWS RDS? - Microsoft Fabric Community
When setting up a connection in Power BI, use the appropriate connection string format. You can refer to the following post:
Solved: Connect Desktop Power BI to AWS RDS postgreSQL - Microsoft Fabric Community
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 5 | |
| 5 | |
| 4 |