替换 jsch 依赖
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit.ssh.jsch</artifactId>
<version>7.1.0.202411261347-r</version>
<exclusions>
<exclusion>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.mwiede</groupId>
<artifactId>jsch</artifactId>
<version>0.2.21</version>
</dependency>
标签:jsch,私钥,privatekey,invalid,报错,jgit
From: https://www.cnblogs.com/Hakurei-Reimu-Zh/p/18632736