> 文章列表 > java-ssh连接会报Algorithm negotiation fail 算法协商失败的解决方案

java-ssh连接会报Algorithm negotiation fail 算法协商失败的解决方案

java-ssh连接会报Algorithm negotiation fail 算法协商失败的解决方案

openssh8.1版本 or 7.4版本
jsch0.53or0.2.7版本
调用ssh连接是报Algorithm negotiation fail;
解决方案:
maven中增加依赖,弥补算法缺失

<dependency><groupId>org.bouncycastle</groupId><artifactId>bcprov-jdk15on</artifactId><version>1.70</version></dependency>