无法从Jenkins windows box添加Linux从机

无法从Jenkins windows box添加Linux从机,linux,windows,jenkins,Linux,Windows,Jenkins,我已经在windows box上安装了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\c

我已经在windows box上安装了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. 

对我有效的方法是在节点配置中将主机密钥验证策略从已知主机文件验证策略更改为手动信任密钥验证策略