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

    XMLWordPrintable

Details

    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

          pmarcoen Peter Marcoen created issue -
          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.

          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.
          pmarcoen 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.

          pmarcoen 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.
          pmarcoen Peter Marcoen made changes -
          Field Original Value New Value
          Description When upgrading Publish-over-SSH from v1.13 to v1.14, I all of a sudden get the following error when using "Send build artifacts over SSH":

          {quote}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)]]{quote}

          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.
          When upgrading Publish-over-SSH from v1.13 to v1.14, I get the following error when using "Send build artifacts over SSH":

          {quote}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)]]{quote}

          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.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 171462 ] JNJira + In-Review [ 184316 ]
          slide_o_mix Alex Earl made changes -
          Assignee bap [ bap ] Alex Earl [ slide_o_mix ]
          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.

          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.
          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.

          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.
          slide_o_mix Alex Earl made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]

          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)

          gmcdonald 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)

          People

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

            Dates

              Created:
              Updated:
              Resolved: