参考:https://my.oschina.net/greatqing/blog/740179

1、jsch jar包连接不上ssh报Algorithm negotiation fail 错误

1 com.jcraft.jsch.JSchException: Algorithm negotiation fail
2         at com.jcraft.jsch.Session.receive_kexinit(Session.java:583) ~[jsch-0.1.51.jar:na]
3         at com.jcraft.jsch.Session.connect(Session.java:320) ~[jsch-0.1.51.jar:na]

解决方法,将jsch的包升级到0.1.53解决问题,问题详情参考链接:https://my.oschina.net/greatqing/blog/740179

1 <dependency>
2     <groupId>com.jcraft</groupId>
3     <artifactId>jsch</artifactId>
4     <version>0.1.53</version>
5 </dependency>

 

jsch jar包连接不上ssh报Algorithm negotiation fail 错误

相关文章:

  • 2022-03-01
  • 2021-11-09
  • 2022-12-23
  • 2021-09-02
  • 2021-04-08
  • 2021-11-11
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-08-04
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案