0

when i am trying to connect to SFTP through jave code in client machine,I am getting the below exception, while using the Runnable jar in Client machine, but in normal machine it's getting successfully connected to SFTP.

JSchException: Algorithm negotiation fail

i am getting the exception here.

session.connect();

How to solve this?

James Z
  • 12,209
  • 10
  • 24
  • 44

1 Answers1

0

I too faced the same issue. We need to use the latest JSch library - jsch-0.1.54.jar. After importing the latest jar, the problem was solved

Baski
  • 1