linux - rundeck-配置失败 : SSH Keyfile does not exist

标签 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]}]

我已经生成了 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/

相关文章:

c++ - GCC 报告对现有符号的 undefined reference

arrays - Bash:将 ls 保存在一个数组中 -> 只接收小写字母

linux - 连接到 EC2 时出现 SSH 错误 - 无法找到 .ssh 目录

ubuntu - Vagrant SSH 默认 key 密码?

Rundeck - 禁用密码字段的记录

c - 优化数据流到C盘(也是闪存)

linux - CLOCK_MONOTONIC 与 CLOCK_MONOTONIC_RAW 有什么区别?

java - 通过 ssh jenkins 构建工件 - PHP

linux - rundeck:辅助 sudo 密码身份验证不起作用

gradle - 如何从源代码(即github存储库)安装Rundeck?