简体   繁体   English

Rundeck ssh:失败:AuthenticationFailure:连接到节点的身份验证失败:

[英]Rundeck ssh: Failed: AuthenticationFailure: Authentication failure connecting to node:

I'm testing rundeck 3.3.0 from Docker 1.13.1 on a RHEL 7.7我正在 RHEL 7.7 上测试来自 Docker 1.13.1 的 rundeck 3.3.0

I have the following node:我有以下节点:

  oc3583155071  keys/local/root     password    
    Operating System    Linux
    ssh-authentication: password 
    sudo-command-enabled:   true 
    sudo-password-storage-path: keys/local/root

and these are its key storage:这些是它的关键存储:

  keys/local

  2 keys
    neslarra  Password
    root      Password             <<<<<<==============

    Storage path: keys/local/root 
    Created: 5:27 pm by: admin

I tested the ssh connection from rundeck shell and it works OK:我从 rundeck shell 测试了 ssh 连接,它工作正常:

  rundeck@9ce08386edcd:~$ ssh root@oc3583155071
  root@oc3583155071's password: 
  [root@oc3583155071 ~]# uname -n; whoami
  oc3583155071
  root
  [root@oc3583155071 ~]#

BUT, when I try to exec a command from the runeck GUI it retunrs this error:但是,当我尝试从 runeck GUI 执行命令时,它会返回此错误:

  Nodes   oc3583155071
  Recent: uname -n; whoami
   
  >  uname -n; whoami #28 
  Failed: AuthenticationFailure: Authentication failure connecting to node: "oc3583155071". Could not authenticate.
  Execution failed: 28 in project Test1: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [oc3583155071: AuthenticationFailure: Authentication failure connecting to node: "oc3583155071". Could not authenticate. + {dataContext=MultiDataContextImpl(map={ContextView(node:oc3583155071)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, node:oc3583155071)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, Node failures: {oc3583155071=[AuthenticationFailure: Authentication failure connecting to node: "oc3583155071". Could not authenticate. + {dataContext=MultiDataContextImpl(map={ContextView(node:oc3583155071)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, node:oc3583155071)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, status: failed]

Help will be appreciate (a lot..!).帮助将不胜感激(很多..!)。 Nestor.内斯特。

You need to configure your ssh target node and set up correctly on the Rundeck's node source, your node definition needs more attributes, I leave these steps to configure from scratch:您需要配置您的 ssh 目标节点并在 Rundeck 的节点源上正确设置,您的节点定义需要更多属性,我将这些步骤从头开始配置:

  1. Make sure that your target ssh config admits password login (enable PasswordAuthentication yes on the /etc/ssh/sshd_config config file and restart the sshd service: systemctl restart sshd ).确保您的目标 ssh 配置允许密码登录(在/etc/ssh/sshd_config配置文件上启用PasswordAuthentication yes并重新启动sshd服务: systemctl restart sshd )。

  2. On the Rundeck side create a password key to reference it later in the resources.xml file ( ssh-password-storage-path attribute).在 Rundeck 端创建一个密码密钥,以便稍后在resources.xml文件( ssh-password-storage-path属性)中引用它。

  3. On Rundeck side, make sure that you're using a well-configured node definition .在 Rundeck 方面,确保您使用的是配置良好的节点定义 I used the following resources.xml content example:我使用了以下resources.xml 。xml 内容示例:

<?xml version="1.0" encoding="UTF-8"?>
<project>
 <node name="remote" description="remote ssh node" osFamily="unix" username="vagrant" hostname="192.168.33.20" ssh-authentication="password" ssh-password-storage-path="keys/sshpasswd" />
</project>
  1. Test sending any command to your new node, on Rundeck GUI, go to "Commands" (Left menu) and select your node on "Nodes" textbox (using name: <your-node-name> ) and send any command ("Enter a command" textbox), you must see the result.测试向您的新节点发送任何命令,在 Rundeck GUI 上,go 到“命令”(左侧菜单)和 select 您的节点在“节点”文本框(使用name: <your-node-name> )并发送任何命令(“Enter命令”文本框),您必须看到结果。

暂无
暂无

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

相关问题 从 R 连接到 Postgres 导致身份验证失败 - Connecting to Postgres from R causes authentication failure 连接到 Postgres Docker 服务器 - 身份验证失败 - Connecting to Postgres Docker server - authentication failed 通过 PyMongo 连接 Flask 到 Docker Compose 中的 MongoDB 时身份验证失败 - Failed Authentication when connecting with Flask through PyMongo to MongoDB in Docker Compose 从 PhpStorm 连接到 docker PostgreSQL 给出密码验证失败 - Connecting to docker PostgreSQL from PhpStorm gives password authentication failed Hyperledger Fabric Raft Orderer 设置失败,通道创建时身份验证握手失败 - Hyperledger Fabric Raft Orderer Setup Failed with authentication handshake failure on channel create 连接到在 Docker 中运行的 postgres 时出错:pq:用户“postgres”的密码验证失败 - Getting an error while connecting to postgres running in Docker: pq: password authentication failed for user “postgres” MongoError:使用 Docker 容器对 node.js 应用程序进行身份验证失败 - MongoError: Authentication failed for node.js app using Docker containers PyMongo Auth Failure: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed' - PyMongo Auth Failure: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed' 将 Cassandra 容器连接到应用程序 Web 容器失败 - 错误:202 连接到节点 - Connect the Cassandra container to application web container failed - Error: 202 Connecting to Node org.postgresql.util.PSQLException:致命:从 Spring Boot 连接到 postgress 时,用户“postgres”的密码验证失败 - org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres" while connecting to postgress from Spring Boot
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM