Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35231

Prime size must be multiple of 64 error after upgrading Publish-over-SSH from 1.13 to 1.14

    Details

    • Similar Issues:

      Description

      When upgrading Publish-over-SSH from v1.13 to v1.14, I get the following error when using "Send build artifacts over SSH":

      ERROR: Exception when publishing, exception message [Failed to connect session for config [my-server-name]. Message [Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)]]

      I have configured this SSH server with user root, remote directory '/' and password authentication without a key.
      When I google this error I only get responses regarding the programming of SSH clients, no mention of a misconfiguration of some kind.

        Attachments

          Activity

          Hide
          alexklein Alexandre Klein added a comment - - edited

          Not sure if it is related, but which version of Jenkins are you using?

          I had the same problem with 1.14. Downgrading this plugin to 1.13 solved this issue.

          This problem only happened when ssh to a Solaris Sparc machine. Other platforms (x86, freebsd, hpux) are ok.

          Show
          alexklein Alexandre Klein added a comment - - edited Not sure if it is related, but which version of Jenkins are you using? I had the same problem with 1.14. Downgrading this plugin to 1.13 solved this issue. This problem only happened when ssh to a Solaris Sparc machine. Other platforms (x86, freebsd, hpux) are ok.
          Hide
          pmarcoen Peter Marcoen added a comment - - edited

          Thank you for the reply Alexandre Klein.

          I am running Jenkins v.2.7.
          The machine I am ssh'ing to is a Netgear ReadyNAS running Debian Linux.
          Downgrading to 1.13 did indeed work but I still think this is some sort of bug.

          Show
          pmarcoen Peter Marcoen added a comment - - edited Thank you for the reply Alexandre Klein . I am running Jenkins v.2.7. The machine I am ssh'ing to is a Netgear ReadyNAS running Debian Linux. Downgrading to 1.13 did indeed work but I still think this is some sort of bug.
          Hide
          slide_o_mix Alex Earl added a comment -

          What version of Java is running on the machine? It looks like older versions of Java will have this issue because they don't support larger key sizes. The smaller key sizes are deprecated in the newer version of JSch because they are not secure.

          Show
          slide_o_mix Alex Earl added a comment - What version of Java is running on the machine? It looks like older versions of Java will have this issue because they don't support larger key sizes. The smaller key sizes are deprecated in the newer version of JSch because they are not secure.
          Hide
          slide_o_mix Alex Earl added a comment -

          The newer version of Jsch used requires larger key sizes, and some older versions of Java don't support these key sizes. The Java version needs to be updated on the systems.

          Show
          slide_o_mix Alex Earl added a comment - The newer version of Jsch used requires larger key sizes, and some older versions of Java don't support these key sizes. The Java version needs to be updated on the systems.

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              pmarcoen Peter Marcoen
            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: