Forum Discussion
kwonsok
8 years agoFrequent Visitor
Power BI SSH Tunneling
Hi, I am currently using the free version of Power BI in Windows 10. Please let me know how to query data from a MySQL database with SSH tunneling. Thank you.
MaxW
Advocate II
8 years agoHi Kwonsok,
I am not aware of a way to configure two stage authentication in powerBI (I.e SSH into server and login to database). I had a similar requirement to query a PostgreSQL database on a headless linux server, which required using a SSH key file.
If there's a better way I'd like to know myself, but the workaround I used was to use the PuTTY command line tools 'plink' and 'pscp' in a daily job to populate a .csv file with my query and transfer it to my reporting server. You could use the .csv file as is, but I have another job to import the .csv into a SQL Server table.
I did consider trying to make a linked server but I had spent enough time already and I only needed one query. It works well although obviously not great for large amounts of data.
I am not aware of a way to configure two stage authentication in powerBI (I.e SSH into server and login to database). I had a similar requirement to query a PostgreSQL database on a headless linux server, which required using a SSH key file.
If there's a better way I'd like to know myself, but the workaround I used was to use the PuTTY command line tools 'plink' and 'pscp' in a daily job to populate a .csv file with my query and transfer it to my reporting server. You could use the .csv file as is, but I have another job to import the .csv into a SQL Server table.
I did consider trying to make a linked server but I had spent enough time already and I only needed one query. It works well although obviously not great for large amounts of data.