2017-03-03 101 views
0

Rundeck SSH使用密码验证哪里存储rundeck ssh login的密码文件?

Rundeck有一个选项ssh到使用密码验证节点。这就需要增加/var/rundeck/projects/PROJECT_NAME/etc/resources.xmlssh-authenticationssh-password-storage-path性能如下:

<xml version="1.0" encoding="UTF-8"?> 
<project> 
    <node ... ssh-authentication="password" ssh-password-storage-path="keys/node.password"/> 
</project> 

Rundeck告诉我,该密码存储路径必须以keys/开始。但是文档没有告诉目录keys是相对于什么。所以我的问题是:

什么是存储密码文件的目录的绝对路径?

没有keys目录在我rundeck安装,当我做出keys目录/etc/rundeck/var/lib/rundeck/var/rundeck,它失败,出现错误:

Failed to read SSH Password stored at path: keys/node.password: org.rundeck.storage.api.StorageException: Path does not exist: keys/node.password

回答

1

SSH Password Storage

When connecting to the remote node, Rundeck will look for a property/attribute specifying the location of the password storage path, in this order, with the first match having precedence:

  • Node level: ssh-password-storage-path attribute on the Node. Applies >only to the target node.
  • Project level: project.ssh-password-storage-path property in project.properties. Applies to any project node by default.
  • Rundeck level: framework.ssh-password-storage-path property in framework.properties. Applies to all projects by default.
1

Rundeck似乎存储的密钥存储内容/var/lib/rundeck/var/storage/content/keys及其元数据/var/lib/rundeck/var/storage/meta/keys