Created
April 8, 2021 05:48
-
-
Save lichengte/a9546630456149dec739e04124db749f to your computer and use it in GitHub Desktop.
jsch使用秘钥登录sftp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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