Rundeck ssh连接被拒绝了

时间:2017-07-25 10:24:42

标签: ssh ssh-keys rundeck

我无法在节点上远程执行,我已将节点的私钥存储在/var/lib/rundeck/nodes/backend-01.key上,我收到此错误:

执行日志:

Execution failed: 20 in project deployments: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [backend-01: ConnectionFailure: Conexión rehusada (Connection refused)]}, Node failures: {backend-01=[ConnectionFailure: Conexión rehusada (Connection refused)]}, status: failed]

我的resources.xml:

<project>
  <node name="backend-01"
        description="Backend-01"
        tags=""
        hostname="10.10.10.10"
        osArch=" x86_64"
        osFamily="unix"
        osName="Linux"
        osVersion="x86_64"
        username="backend-01"
        ssh-keypath="/var/lib/rundeck/nodes/backend-01.key"
  />
</project>

我将节点私钥存储在/var/lib/rundeck/nodes/backend-01.key

我遵循了本教程,但没有工作

https://www.youtube.com/watch?v=RxNSqprG_BU

https://www.youtube.com/watch?v=qOA-kWse22g

2 个答案:

答案 0 :(得分:2)

Connection refused表示目标节点上的ssh端口未打开。这可能是防火墙策略,openssh没有运行,其他

您是否可以使用ssh -i /var/lib/rundeck/nodes/backend-01.key backend-01@10.10.10.10从rundeck服务器ssh到目标节点?

答案 1 :(得分:0)