Linux下Jenkins代理配置问题

Lok*_*mar 1 hosts-file ssh-keys jenkins jenkins-plugins jenkins-agent

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

在中搜索 lokesh 在中/var/lib/jenkins/.ssh/known_hosts 搜索 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.
Run Code Online (Sandbox Code Playgroud)

pra*_*asa 7

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

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

选择非验证验证策略并检查。

让我知道这是否有帮助。