I implemented a Java program that will connect and execute a command in a remote server using JSCH. The problem is that whenever I tried to connect to the server, I got the
I was getting the same error with JGit's use of JSch. I tried a lot of suggestions in this thread to no avail.
But then recently, I noticed that if I used a slightly newer jre than I used before, the error went away.
Just for the record, I was using "jsch-0.1.55.jar" and the two jre's I tried were:
I can't say for sure whether it was merely the JRE upgrade that resolved the problem or the suggested tweaks from this thread that I made in addition.
All the same, just wanted to share the experience in case it helps someone else.