title: DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive)
body: <p>I have a set-up in which I am executing a build from Jenkins on a Solaris Server connecting via <code>sshexec</code> task in <code>ANT</code>.</p>
  
  <p>On trigerring the build, it is throwing below error:</p>
  
  <blockquote>
    <p>com.jcraft.jsch.JSchException: Session.connect:
    java.security.InvalidAlgorithmParameterException: DH key size must be
    multiple of 64, and can only range from 512 to 2048 (inclusive). The
    specific key size 2047 is not supported.</p>
  </blockquote>
  
  <p>After some google search, I came to know that it might be fixed by updating to Java 8. I did that, however, still no success.</p>
  
  <p>Can anyone please let me know how to fix it?</p>