[英]Rundeck ssh: Failed: AuthenticationFailure: Authentication failure connecting to node:
[英]rundeck SSH Authentication failure
我使用 docker-compose 运行 Rundeck v4.1.2。
我创建了一个测试密钥对。 我已使用 GUI 将私钥输入到路径keys/test
下的密钥存储中,并将目标节点配置为要求它进行 SSH 访问。 我在目标节点的/home/rundeck/.ssh/authorized_keys
下添加了公钥。
resources.xml 文件如下所示:
server18:
nodename: server18
hostname: server18.rc-group.local
osVersion: 18.04
osFamily: unix
osArch: amd64
description: target-test
osName: Ubuntu
username: rundeck
ssh-authentication: privateKey
ssh-privateKey-storage-path: keys/test
当我尝试使用命令行 SSH 和相同的私钥进行连接时,它工作正常。 所以密钥没问题,目标节点配置也没问题。
当我在 GUI 中尝试在同一个目标节点上运行“主机名”命令时,我得到:
Failed: AuthenticationFailure: Authentication failure connecting to node: "server18". Make sure your resource definitions and credentials are up to date.
有人能发现我错过了什么吗?
在节点定义中使用ssh-key-storage-path
属性而不是ssh-privateKey-storage-path
,您可以在此处查看有效属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.