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


参考: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 错误


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM