With JSch I\'m calling addIdentity() to add a private key and getSession() to open an SSH tunnel.
When running this code locally on my Windows machine the opening of
My problem was solved by using pem
file instead of ppk
.
pem
file is in OpenSSH format that com.jcraft.jsch.JSch jar requires
My educated guess is that jSCh does not support PuTTY key format, but rather standard PEM or OpenSSH format. You can convert the PPK to PEM in the PuTTYgen and it should solve your problems.