I\'m using JGit to access a remote Git repo, and I need to use SSH for it. JGit uses JSch to provide secure access. However, I\'m not sure how to set the key file and the kn
Managed to find the issue. The public key in the server side had a different name other than the usual id_rsa.pub, while the private key on my side was id_rsa. JSch expects by default the public key to have the same name as the private key plus the .pub suffix. Using a key pair with a common name (ex.: private = key_1 and public = key_1.pub) solves the issue.