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

Ubuntu slave cannot be started because ssh connection fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: ssh-slaves-plugin
    • Labels:
      None
    • Environment:
      Windows Server 2008 R2 Standard SP1
      Jenkins ver. 2.46.2
    • Similar Issues:

      Description

      The SSH connection with the Ubuntu server fails with the error message "Key exchange was not finished, connection is closed.".

      [05/02/17 13:07:48] [SSH] Opening SSH connection to 172.16.11.242:22.
      C:\Windows\system32\config\systemprofile\.ssh\known_hosts [SSH] No Known Hosts file was found at C:\Windows\system32\config\systemprofile\.ssh\known_hosts. Please ensure one is created at this path and that Jenkins can read it.
      Key exchange was not finished, connection is closed.
      java.io.IOException: There was a problem while connecting to 172.16.11.242:22
          at com.trilead.ssh2.Connection.connect(Connection.java:818)
          at com.trilead.ssh2.Connection.connect(Connection.java:687)
          at com.trilead.ssh2.Connection.connect(Connection.java:601)
          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(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: Key exchange was not finished, connection is closed.
          at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:93)
          at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:230)
          at com.trilead.ssh2.Connection.connect(Connection.java:770)
          ... 9 more
      Caused by: java.io.IOException: The server hostkey was not accepted by the verifier callback
          at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:591)
          at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:777)
          at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:489)
          ... 1 more
      [05/02/17 13:07:48] Launch failed - cleaning up connection
      [05/02/17 13:07:48] [SSH] Connection closed.

      The slave is configured to connect and authenticate with username and password.

      There is also a warning about a missing ssh known_hosts file (No Known Hosts file was found at C:\Windows\system32\config\systemprofile\.ssh\known_hosts. Please ensure one is created at this path and that Jenkins can read it.), but in windows it is not possible to create a folder with a name starting with a point (.ssh)

       

       

        Attachments

          Issue Links

            Activity

            spamme spam me created issue -
            spamme spam me made changes -
            Field Original Value New Value
            Issue Type Improvement [ 4 ] Bug [ 1 ]
            peppe Giuseppe Landolfi made changes -
            Component/s ssh-slaves-plugin [ 15578 ]
            Component/s slave-setup-plugin [ 15929 ]
            nperrenoud Nicolas Perrenoud made changes -
            Link This issue is related to JENKINS-44046 [ JENKINS-44046 ]
            ifernandezcalvo Ivan Fernandez Calvo made changes -
            Resolution Not A Defect [ 7 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              peppe Giuseppe Landolfi
              Reporter:
              spamme spam me
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: