jsch icon indicating copy to clipboard operation
jsch copied to clipboard

FOR those who encountered "Algorithm negotiation fail" exception.

Open rufushuang opened this issue 10 years ago • 6 comments
trafficstars

You'd better read http://stackoverflow.com/questions/6263630/jschexception-algorithm-negotiation-fail

And i found the sshd_config method in Malte Clasen's comment, really works for me.

Add one line:

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1

in /etc/ssh/sshd_config, if you can.

rufushuang avatar Dec 12 '14 17:12 rufushuang

Thanks.

AlvyB avatar Feb 12 '16 01:02 AlvyB

Thanks :)

pgkaila avatar Jun 10 '16 12:06 pgkaila

Anyone have a solution for this under windows 7? I see the same error when using Eclipse/SSH from my Win7 pc.

joeinaustin avatar Jul 24 '16 16:07 joeinaustin

then I cannot connect (even with filezilla that was working)

phil123456 avatar Sep 07 '16 13:09 phil123456

Update the version of wagon-ssh to the latest, and it will go away.

danyaljj avatar Sep 28 '17 13:09 danyaljj

The best thing is to keep your dependencies up to date with new enough git/ssh modules. Adding weak algorithms and cipher suites is not a good solution. They just deprecated another round of here

majormoses avatar Feb 24 '18 20:02 majormoses