无法在Jenkins中启动从属节点

无法在Jenkins中启动从属节点,jenkins,jenkins-slave,Jenkins,Jenkins Slave,无法在Jenkins中启动从属节点 主计算机在日志文件中显示错误异常 [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: Con

无法在Jenkins中启动从属节点

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

[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.

如果你的从机是Mac,那么
转到系统首选项->共享并启用远程登录,然后重试。

我怀疑您需要为JVM安装Java加密扩展。否则,RSA密钥大小将受到限制,无法建立身份验证


有关详细信息,请参阅。

我遇到了此问题,并通过将IP地址替换为主机名解决了此问题。

我也遇到了此问题。我已经找到了奴隶的日志

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。 那就没问题了


Eric通过将主机名替换为IP地址解决了my的问题


另请参见:

您是否可以远程连接到该从机?我有同样的问题,我可以远程连接到该机器。您可以尝试使用端口443而不是端口22,即10.0.11.120:443我遇到了相同的问题。使用端口443而不是端口22没有效果。我可以登录。有同样的问题这是一个windows节点对我来说也是同样的问题答案完全相同,相反。答案是用主机取代ip。但对我来说,用ip代替主机是可行的