I\'m trying to connect to a remote MySQL server via SSH in my Java project. How can I integrate SSH connection with JPA?
I\'m using Netbeans 6.9.1, JPA, MySQL 5.2.>
You can't ... You have to set up external ssh tunel.
ssh -N -f -L 3307:localhost:3306 login@remotwhostwithmysql
Later change connection-url jdbc:mysql://127.0.0.1:3307/yourdatabase