无法从Jenkins Windows框中添加Linux从机

时间:2017-05-31 09:19:53

标签: linux windows jenkins

我在Windows机器上安装了Jenkins,当我尝试添加Linux从机时,我收到如下错误。

有没有人知道为什么会出现这种错误?

[05/31/17 04:05:13] [SSH] Opening SSH connection to sdc00ira: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 sdc00ira: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:535)
    at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:777)
    at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:489)
    ... 1 more
[05/31/17 04:05:13] Launch failed - cleaning up connection
[05/31/17 04:05:13] [SSH] Connection closed. 

1 个答案:

答案 0 :(得分:-1)

对我有用的是改变主机密钥验证策略"来自"已知主机文件验证策略" to"手动信任密钥验证策略"在节点配置中。