gpt4 book ai didi

Jenkins 主从 : Key exchange was not finished, 连接已关闭

转载 作者:行者123 更新时间:2023-12-02 13:47:15 33 4
gpt4 key购买 nike

我想将一个从站连接到 Master-Jenkins,但是在尝试连接时出现以下错误:

[05/02/18 15:26:59] [SSH] Opening SSH connection to <IP>
Key exchange was not finished, connection is closed.
java.io.IOException: There was a problem while connecting to <IP>:22
at com.trilead.ssh2.Connection.connect(Connection.java:818)
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:831)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
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)
... 7 more
Caused by: java.io.IOException: Cannot negotiate, proposals do not match.
at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:405)
at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:777)
at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:489)
... 1 more
[05/02/18 15:26:59] Launch failed - cleaning up connection
[05/02/18 15:26:59] [SSH] Connection closed.

节点配置:
- 启动方法:通过 SSH 启动 Slave
- 主机名:是 IP
- 访问数据:我为 SSH 访问创建的用户 -> 公钥在从节点上的授权 key 中

如果我以用户“jenkins”的身份在我的主人上做一个 ssh jenkins@<IP>我可以毫无问题地登录(公钥在从属设备上)。

为什么它不适用于“UI-Jenkins”。

Jenkins 版本:1.658

节点:Ubuntu 14.04

SSH-Slave 插件:1.26

最佳答案

那“解决”了这个问题:

“解决方法是在 Jenkins Slave 的/etc/ssh/sshd_config 中注释掉 MACs 和 KexAlgorithm 行并重新启动 sshd(服务 ssh 在 Ubuntu 上重新启动)

更新:该问题已于 2017-04-29 解决“

Jenkins master fails to connect to the slave over SSH

关于Jenkins 主从 : Key exchange was not finished, 连接已关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50136080/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com