1

I have database in MySql 5 server, but it needs ssh connection. I want to use hibernate but I don't know how to configure hibernate.cfg.xml file for connect to ssh server. Of course, I tried to find the answer in google, but I did not find anything. Also I tried use Putty, but it's also not help.

3
  • Do you mean that your mysql server runs over ssh? Commented Sep 20, 2012 at 6:51
  • Are you using SSH to tunnel and "port forward" the connection ? or are you really talking about using SSL with MySQL JDBC driver ? Commented Sep 20, 2012 at 6:53
  • Yes, I using SSH to tunnel and forward port for the connection Commented Sep 25, 2012 at 12:24

1 Answer 1

1

I hope you can use Jsch for ssh hibernate, For examples about Jsch clickhere

Here is the link it could help you to solve the SSH in hibernate.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.