Linux 下的 Jenkins 代理配置问题

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

我面临以下问题,请查看。

/var/lib/jenkins/.ssh/known_hosts
中搜索 lokesh 正在搜索 lokesh:22 在
/var/lib/jenkins/.ssh/known_hosts

[06/04/20 12:59:45] [SSH] WARNING: No entry currently exists in the Known Hosts file for this host. Connections will be denied until this new host and its associated key is added to the Known Hosts file.
Key exchange was not finished, connection is closed.
SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 8 more retries left.
jenkins jenkins-plugins ssh-keys hosts-file jenkins-agent
2个回答
6
投票

您应该将 ssh 密钥(在从属设备上创建)添加到主设备(Jenkins 用户)中的已知主机文件中。请点击此链接

如果这不起作用,您还可以再尝试一件事。 jenkins节点设置中有一个主机密钥验证策略的选项。

选择非验证验证策略并勾选。

请告诉我这是否有帮助。


2
投票

在 Jenkins 服务器上运行: ssh-keyscan -H ${IP-OF-AGENT} > ~/.ssh/known_hosts

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