[Interest] How to ssh-in then connect to a database in Qt?

Konstantin Tokarev annulen at yandex.ru
Mon Jan 9 20:05:21 CET 2017

09.01.2017, 22:01, "Jason H" <jhihn at gmx.com>:
> This one is a head scratcher for me. I want to write a Qt app that connects to a server running SSH, then connect to a database behind it, as it's not internet accessible. MySQLWorkbench and others can do this. I'm wondering if there is a way d do this in Qt? (Currently the DB is Mysql, but plan to move to Postgres later)/
> I guess the fall-back is to use a SSH tunnel via command line?

I'd rather said it's the preferred option, except that you can set up tunnel automatically inside application by running ssh client via QProcess.


More information about the Interest mailing list