简体   繁体   English

新远程节点上的 Rundeck 身份验证失败

[英]Rundeck Authentication failure on new remote node

I want to add the new remote node in rundeck but it has shown the in node tab node details but it is giving the Failed: AuthenticationFailure: Authentication failure connecting to node: "192.168.1.200". Make sure your resource definitions and credentials are up to date.我想在 rundeck 中添加新的远程节点,但它显示了节点选项卡中的节点详细信息,但它给出了Failed: AuthenticationFailure: Authentication failure connecting to node: "192.168.1.200". Make sure your resource definitions and credentials are up to date. Failed: AuthenticationFailure: Authentication failure connecting to node: "192.168.1.200". Make sure your resource definitions and credentials are up to date. you can see the error message in the screenshot.您可以在屏幕截图中看到错误消息。 I have copied the key using ssh-copy-id user@ip and its working fine with ansible -m ping all from CLI but when I execute the commands from rundeck its giving error.我已经使用 ssh-copy-id user@ip 复制了密钥,并且它在 CLI 中使用ansible -m ping all正常工作,但是当我从 rundeck 执行命令时,它给出了错误。 I gave the sudo right to user and hostkeychecking no , I am not using the resourse.xml in /var/lib/rundeck/project but still facing the issue.我将 sudo 权限授予 user 和hostkeychecking no ,我没有使用/var/lib/rundeck/project但仍然面临这个问题。 how it could be fixed.如何修复。

You need to define ansible_user (Ansible host file, usually at /etc/ansible/hosts ) or remote_user (Ansible playbooks context).您需要定义ansible_user (Ansible 主机文件,通常位于/etc/ansible/hosts )或remote_user (Ansible playbooks 上下文)。 Take a look at this .看看这个

Also, you can define that user at Rundeck, just go to your project, then go to Project Settings > Edit Configuration > Default Node Executor (the tab, defined as "Ansible Ad-Hoc Node Executor"), put the user name on "SSH User" textbox and save.此外,您可以在 Rundeck 定义该用户,只需转到您的项目,然后转到 Project Settings > Edit Configuration > Default Node Executor(该选项卡,定义为“Ansible Ad-Hoc Node Executor”),将用户名放在“ SSH 用户”文本框并保存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM