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

      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.

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

          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.

          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.

          Peter Marcoen added a comment - - edited

          Thank you for the reply alexklein.

          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.

          Peter Marcoen added a comment - - edited Thank you for the reply alexklein . 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.

          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.

          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.

          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.

          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.

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/137
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-35231%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/137 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-35231%22 (Note: this is an automated bulk comment)

            slide_o_mix Alex Earl
            pmarcoen Peter Marcoen
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: