gpt4 book ai didi

jenkins - 无法指向 Jenkins 主机上 ~/.ssh 中的 ssh key

转载 作者:行者123 更新时间:2023-12-04 01:43:49 27 4
gpt4 key购买 nike

我已经安装了 SSH 代理插件来使用 SSH 身份验证拉出 Git 存储库。我想使用位于系统文件中的 SSH key (来自 Jenkins master ~/.ssh 选项)。这是从官方插件页面截取的屏幕截图:

Screen from official plugin's page

不幸的是,我没有看到这个选项。我只能选择“直接输入”。请查看我的截图。

my screenshot

我配置错了吗?

最佳答案

这是一个相对较新的变化,在安全公告 440 中有解释:https://jenkins.io/security/advisory/2018-06-25/

SECURITY-440 / CVE-2018-1000601 SSH Credentials Plugin allowed the creation of SSH credentials with keys "From a file on Jenkins master". Credentials Binding Plugin 1.13 and newer allows binding SSH credentials to environment variables. In combination, these two features allow users with the permission to configure a job to read arbitrary files on the Jenkins master by creating an SSH credential referencing an arbitrary file on the Jenkins master, and binding it to an environment variable in a job.

SSH Credentials Plugin no longer supports SSH credentials from files on the Jenkins master file system, neither user-specified file paths nor ~/.ssh. Existing SSH credentials of these kinds are migrated to "directly entered" SSH credentials.

关于jenkins - 无法指向 Jenkins 主机上 ~/.ssh 中的 ssh key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51119412/

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