“id_rsa_bblc”的权限 0644 过于开放

Ank*_*are 4 php ssh jenkins

我在詹金斯工作。但是当我创建一个构建时,我收到以下错误。

Permissions 0644 for 'id_rsa_bblc' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: id_rsa_bblc
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Run Code Online (Sandbox Code Playgroud)

在谷歌搜索解决方案时,我发现我必须将文件权限更改为 400 或 600。因此,我尝试在更改权限后再次构建作业(同时使用 400 和 600),但仍然没有用,错误仍然存​​在。

请帮我解决这个问题。

Sha*_*oui 6

您需要限制 rsa 密钥的访问权限

 chmod 400 ~/path-to-your-rsa-key
Run Code Online (Sandbox Code Playgroud)