There are ongoing efforts in Gerrit Code Review and JGit projects to remove dependency on JSch library: , . Instead, MINA SSSD should be used on both: client and server sides.
One difficulty we are facing is the fact the MINA SSHD currently doesn't provide any means to export generated KeyPair in OpenSSH format.
Thomas Wolf added recently the ability to read encrypted OpenSSH private keys in context of
With JSch this code would do the job: