spencerlambert / mysql-events

A node meteor package that watches a MySQL database and runs callbacks on matched events.
Other
89 stars 75 forks source link

Connect through ssh tunnel #44

Open asystat opened 6 years ago

asystat commented 6 years ago

I love this project, thanks for the good work. But how could I use mysql-events with a database that is only reachable through an ssh tunnel using a certificate?

spencerlambert commented 6 years ago

My guess would be to setup a TCP tunnel from localhost:[sum port] to [external host]:[sum port]. The linux tool ptunnel might work.

I'm unsure on setting up the ssl certs so the client and server are able to communicate nicely.

This is more of a configuration issue then a mysql-events issue.

asystat commented 6 years ago

Thanks it was easier than I thought... I setted the tunnel as suggested and worked fine.