Skip to content

Instantly share code, notes, and snippets.

@lichengte
Created April 8, 2021 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lichengte/a9546630456149dec739e04124db749f to your computer and use it in GitHub Desktop.
Save lichengte/a9546630456149dec739e04124db749f to your computer and use it in GitHub Desktop.
jsch使用秘钥登录sftp
jsch使用秘钥登录sftp出现秘钥解密失败的问题
生成秘钥的Openssl工具版本较高,工程中的jsch版本无法正常使用此版本的秘钥
解决:
1.使用低版本的Openssl工具生成自己的秘钥。
2.ssh-keygen -t RSA生成RSA版本的秘钥
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment