gpt4 book ai didi

ssh - 更改 jenkins 从属 DNS 条目

转载 作者:行者123 更新时间:2023-12-02 14:22:22 25 4
gpt4 key购买 nike

我最近更改了我的 jenkins 机器使用的其中一个从属设备的 DNS cname 记录。进行更改后,我更新了节点中的信息,使其指向新名称。从那时起,jenkins slave 无法启动并出现以下错误:

[09/10/14 18:24:11] [SSH] Opening SSH connection to name.domain.com:22.
ERROR: Server rejected the 1 private key(s) for ubuntu (credentialId:xxxxxxxxxxxxxxxxxxxxxxx/method:publickey)
[09/10/14 18:24:11] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1143)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:648)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:642)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[09/10/14 18:24:11] [SSH] Connection closed.
[09/10/14 18:24:11] Launch failed - cleaning up connection

谁能给我有关如何解决此问题的信息?它使用与 DNS 更改之前相同的 key 。

最佳答案

问题在以下行中可见:

ERROR: Server rejected the 1 private key(s) for ubuntu (credentialId:xxxxxxxxxxxxxxxxxxxxxxx/method:publickey)

您需要登录从服务器并检查/var/log/auth.log 以发现从服务器拒绝 key 的原因。

您可能需要仔细检查从站配置使用的凭据。有时当我编辑从配置时,一些设置发生了变化,我不记得有什么变化。

关于ssh - 更改 jenkins 从属 DNS 条目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25772512/

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