Invalid private key when opening SSH tunnel with JSch

前端 未结 2 349
醉酒成梦
醉酒成梦 2021-01-14 06:32

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

2条回答
  •  离开以前
    2021-01-14 07:11

    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.

提交回复
热议问题