无法在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.
答案 0 :(得分:1)
如果您的奴隶机器是Mac,那么 转到系统偏好设置 - > 分享并启用远程登录,然后重试。
答案 1 :(得分: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。 那就没问题了。
埃里克
答案 2 :(得分:0)
我怀疑您需要为JVM安装Java Cryptography Extension。没有它,RSA密钥大小是有限的,并且没有建立身份验证。
有关详细信息,请参阅https://issues.jenkins-ci.org/browse/JENKINS-26495。
答案 3 :(得分:0)
我遇到了这个问题,并通过用主机名替换IP地址解决了这个问题。
答案 4 :(得分:0)