5

无法在 Jenkins 中启动 SLAVE 节点。

主机在日志文件中显示错误异常。

[12/01/14 16:21:44] [SSH] Opening SSH connection to 

10.0.11.120:22.
Connection refused: connect
ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins.
java.lang.IllegalStateException: Connection is not established!
    at com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:1030)
    at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPasswordAuthenticator.canAuthenticate(TrileadSSHPasswordAuthenticator.java:82)
    at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:207)
    at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:169)
    at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1173)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:701)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    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)
[12/01/14 16:21:45] Launch failed - cleaning up connection
[12/01/14 16:21:45] [SSH] Connection closed.

[12/01/14 16:23:44] [SSH] Opening SSH connection to 10.0.11.120:22.
4

5 回答 5

1

如果您的从机是 Mac,请转到系统偏好设置->共享并启用远程登录,然后再试一次。

于 2014-12-02T09:16:03.187 回答
1

我也有这个问题。我跟踪了奴隶的日志。

tail -f /var/log/*.log

我已经看到了这条消息。

Sep 20 14:51:43 clicrdv.aws-eu-west-01.batch-01.adm sshd[1035]: fatal: no matching mac found: client hmac-sha1-96,hmac-sha1,hmac-md5-96,hmac-md5 server hmac-sha2-512,hmac-sha2-256,hmac-ripemd160 [preauth]

然后,我在 /etc/ssh/sshd_config 中删除了这一行

#MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160

并重新启动 ssh。然后完全没有问题。

埃里克

于 2016-09-20T14:57:55.330 回答
0

我怀疑您需要为您的 JVM 安装 Java Cryptography Extension。否则,RSA 密钥大小将受到限制,并且不会建立身份验证。

有关更多详细信息,请参阅https://issues.jenkins-ci.org/browse/JENKINS-26495

于 2015-05-21T21:17:23.233 回答
0

通过用 IP 地址替换主机名解决了我的问题。

另请参阅:https ://issues.jenkins-ci.org/browse/JENKINS-26379?focusedCommentId=249378&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-249378

于 2019-05-21T18:49:57.653 回答
0

我遇到了这个问题,并通过用主机名替换 IP 地址来解决它。

于 2016-05-24T21:42:37.297 回答