当我在 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]}]
我已经生成了 ssh-key,我可以用它来连接 SSH,无需密码。
在rundeck机器中, key 在~/.ssh/id_rsa
中生成
在远程计算机中, key 已复制到~/.ssh/authorized_keys
我做错了什么吗?
最佳答案
检查项目设置,列出的“默认 SSH key ”是什么?
如果值为“var/lib/rundeck/.ssh/id_rsa”,则表明您已使用 Debian 或 RPM 软件包安装了 rundeck。在这种情况下,Rundeck 以不同的用户身份执行,这解释了为什么主目录中的 key 没有被使用。
关于linux - rundeck-配置失败 : SSH Keyfile does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23247446/