rundeck - 配置失败:SSH 密钥文件不存在

use*_*226 2 linux ssh rundeck

当我在 Rundeck 中尝试命令时,它显示:

Failed: ConfigurationFailure: SSH Keyfile does not exist: ~/.ssh/id_rsa
Execution failed: 19: [Workflow step failures: {1=Dispatch failed on 1 nodes: [my.server.com: ConfigurationFailure: SSH Keyfile does not exist: ~/.ssh/id_rsa]}, Node failures: {my.server.com=[ConfigurationFailure: SSH Keyfile does not exist: ~/.ssh/id_rsa]}]
Run Code Online (Sandbox Code Playgroud)

我已经生成了 ssh-key,我可以使用它来连接 SSH,无需密码。

在rundeck机器中,密钥是在~/.ssh/id_rsa

在远程机器中,密钥被复制到~/.ssh/authorized_keys

难道我做错了什么?

Mar*_*nor 5

检查项目设置,列出的“默认 SSH 密钥”是什么?

如果该值为“var/lib/rundeck/.ssh/id_rsa”,则表明您已使用 Debian 或 RPM 软件包安装了 rundeck。在这种情况下,Rundeck 以不同的用户身份执行,这解释了为什么主目录中的密钥没有被使用。