linux - 无法从 Jenkins Windows 框添加 Linux 从机

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

最佳答案

对我有用的是在节点配置中将“主机 key 验证策略”从“已知主机文件验证策略”更改为“手动信任 key 验证策略”。

关于linux - 无法从 Jenkins Windows 框添加 Linux 从机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44280656/

相关文章:

共享文件夹中的 Linux 应用程序文件路径位置 [Java 应用程序]

c++ - 键盘重复计数

linux - 如何将iptables-service规则转换为firewalld规则?

linux - grep -c 不工作

c - mainCRTStartup 与 wmainCRTStartup

Jenkins:可编辑电子邮件通知的触发器类型说明

java - Jenkins CI 插件在 Slave 上运行

jenkins - 从文件系统执行 Jenkinsfile

linux - 检测 D-Bus 上的禁止关闭

windows - "66:PUSH 08"中的66代表什么?