I'm having difficulty with a git client written in java. I am using jGit library to connect via ssh on git server. The problem is that I do not know how to specify the path to the private key and the passphrase for it. I could not find examples in the jGit documentation about which functions I need to call. From what I read, the jGit library uses JSch to connect to the server using ssh, and JSch supports private keys and passphrases. Does anyone have experience with this or have some kind of working code?
thanks
java jgit passphrase jsch
azertys
source share