Gerrit 触发器因 com.jcraft.jsch.JSchAlgoNegoFailException 而失去连接

问题描述 投票:0回答:1

Gerrit Trigger 插件以前运行良好,但从我无法弄清楚的时间点开始,永远无法建立连接,并显示以下错误消息:

Connection error : com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256" serverProposal="ssh-rsa"

Gerrit 触发器版本:2.39.0

SSH 密钥是通过 ssh-keygen 生成的

我注意到有一个名为 JSch dependency 的插件,版本为 0.2.8-65.v052c39de79b_2,这是最新的。

我在stackoverflow上查了一下答案,但没有找到任何有用的信息。你能帮忙吗?

jenkins jsch gerrit-trigger
1个回答
0
投票

尝试在 jenkins 的开头添加以下 JVM_OPTS: -Djsch.client_pubkey=ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa -sha2-256 -Djsch.server_host_key=ssh-ed25519、ecdsa-sha2-nistp256、ecdsa-sha2-nistp384、ecdsa-sha2-nistp521、rsa-sha2-512、rsa-sha2-256、ssh-rsa

© www.soinside.com 2019 - 2024. All rights reserved.