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

can't connect to ubuntu 12.04 agent after upgraded to version 2.58

      got follow error while tried to connect to an ubuntu 12.04 agent,

      [05/02/17 14:24:44] [SSH] Opening SSH connection to jenkins-agent:22. Key exchange was not finished, connection is closed. java.io.IOException: There was a problem while connecting to jenkins-agent:22 at com.trilead.ssh2.Connection.connect(Connection.java:834) at com.trilead.ssh2.Connection.connect(Connection.java:703) at com.trilead.ssh2.Connection.connect(Connection.java:617) at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1265) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:790) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:785) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Key exchange was not finished, connection is closed. at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:95) at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:237) at com.trilead.ssh2.Connection.connect(Connection.java:786) ... 9 more Caused by: java.io.IOException: Cannot read full block, EOF reached. at com.trilead.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:81) at com.trilead.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108) at com.trilead.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:232) at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:706) at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:502) ... 1 more [05/02/17 14:24:44] Launch failed - cleaning up connection [05/02/17 14:24:44] [SSH] Connection closed.

          [JENKINS-43979] can't connect to ubuntu 12.04 agent after upgraded to version 2.58

          Igor Koyfman added a comment -

          Same issue here, except I have RHEL5/6. What do you mean by "applying pull"? Build jenkins.war from source? I think I'd rather wait until the next release.

          Igor Koyfman added a comment - Same issue here, except I have RHEL5/6. What do you mean by "applying pull"? Build jenkins.war from source? I think I'd rather wait until the next release.

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/com/trilead/ssh2/DHGexParameters.java
          http://jenkins-ci.org/commit/trilead-ssh2/3308477c57120302881caf8458595bc81ce020ef
          Log:
          JENKINS-43979 Fix OpenSSH 5 dropping connections with SHA512 enabled

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/com/trilead/ssh2/DHGexParameters.java http://jenkins-ci.org/commit/trilead-ssh2/3308477c57120302881caf8458595bc81ce020ef Log: JENKINS-43979 Fix OpenSSH 5 dropping connections with SHA512 enabled

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/com/trilead/ssh2/DHGexParameters.java
          http://jenkins-ci.org/commit/trilead-ssh2/63b2b8505466c5e90b3d8d76348226d45edfd920
          Log:
          Merge pull request #20 from mc1arke/jenkins-43979-sha512-issues

          JENKINS-43979 Fix OpenSSH dropping connections with SHA512 enabled

          Compare: https://github.com/jenkinsci/trilead-ssh2/compare/3be61af6df03...63b2b8505466

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/com/trilead/ssh2/DHGexParameters.java http://jenkins-ci.org/commit/trilead-ssh2/63b2b8505466c5e90b3d8d76348226d45edfd920 Log: Merge pull request #20 from mc1arke/jenkins-43979-sha512-issues JENKINS-43979 Fix OpenSSH dropping connections with SHA512 enabled Compare: https://github.com/jenkinsci/trilead-ssh2/compare/3be61af6df03...63b2b8505466

          Code changed in jenkins
          User: Michael Clarke
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/f36917c210d52ce7fc1f4bca71c9f1baf11c4647
          Log:
          [JENKINS-42959, JENKINS-44046, JENKINS-43979] - Bump Trilead to build217-jenkins-10 (#2872)

          JENKINS-42959 Correctly compare key algorithms during key verification
          [FIXED JENKINS-44046][FIXED JENKINS-43979] Use a larger default key size to fix issues when using SHA256 MACs during Diffe-Helman key exchange against older versions of OpenSSH

          Fixes issues encountered following the recent move to the latest Trilead version. These fix 2 underlying issues:

          diffe-helman-sha256 Key Exchange needs at least 2048 bits of data to generate a key against OpenSSH 6.4 and below.
          Known hosts comparison incorrectly compares the hostname against the key value meaning key verification always fails when using known hosts files

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/f36917c210d52ce7fc1f4bca71c9f1baf11c4647 Log: [JENKINS-42959, JENKINS-44046, JENKINS-43979] - Bump Trilead to build217-jenkins-10 (#2872) JENKINS-42959 Correctly compare key algorithms during key verification [FIXED JENKINS-44046] [FIXED JENKINS-43979] Use a larger default key size to fix issues when using SHA256 MACs during Diffe-Helman key exchange against older versions of OpenSSH Fixes issues encountered following the recent move to the latest Trilead version. These fix 2 underlying issues: diffe-helman-sha256 Key Exchange needs at least 2048 bits of data to generate a key against OpenSSH 6.4 and below. Known hosts comparison incorrectly compares the hostname against the key value meaning key verification always fails when using known hosts files

          lklock added a comment -

          Hi,

          I confirm that applying https://github.com/jenkinsci/trilead-ssh2/pull/20

          and https://github.com/jenkinsci/trilead-ssh2/pull/21 fixed the issue as well for my Solaris 11 nodes.

          Thanks

          lklock added a comment - Hi, I confirm that applying https://github.com/jenkinsci/trilead-ssh2/pull/20 and https://github.com/jenkinsci/trilead-ssh2/pull/21 fixed the issue as well for my Solaris 11 nodes. Thanks

          paladox added a comment -

          Thanks. The fix should be released in jenkins 2.59.

          paladox added a comment - Thanks. The fix should be released in jenkins 2.59.

          Daniel Beck added a comment -

          Fixed in 2.59 (to be released within a day or so).

          Daniel Beck added a comment - Fixed in 2.59 (to be released within a day or so).

          paladox added a comment -

          2.59 has been released now.

          paladox added a comment - 2.59 has been released now.

          This has fixed the issue I've seen.  Thanks everyone who was able to determine the problem here!

          David Dellsperger added a comment - This has fixed the issue I've seen.  Thanks everyone who was able to determine the problem here!

          Reiner Wirtz added a comment -

          Version 2.59 solved my communication problems.

          Reiner Wirtz added a comment - Version 2.59 solved my communication problems.

            mc1arke Michael Clarke
            maksonlee Makson Lee
            Votes:
            17 Vote for this issue
            Watchers:
            28 Start watching this issue

              Created:
              Updated:
              Resolved: