It's not possible to connect via ssh to remote database
The interesting question: Is there a generic way to do this? Maybe there needs to be a way to allow additional actions before/after a/the first connection was made.
Background: For mysql exists a replacement SocketFactory implementation, that uses jsch to create a tunnel. But this is not too stable.
The alternative: Use JSCH to create a generic tcp Tunnel to access the db - but then the jdbc URL has to be changed - and: How should this be shown in the GUI?
About GUI question, please, take a look at http://www.sequelpro.com/docs/Set_up_an_SSH_Tunnel
Navicat does it nice: http://www.navicat.de/manual/online_manual/en/navicat/win_manual/index.html
*** Bug 155357 has been marked as a duplicate of this bug. ***