Remote command on Linux host

38 views
Skip to first unread message

Rahul Saxena

unread,
Sep 30, 2022, 5:35:47 AM9/30/22
to rundeck...@googlegroups.com
Hi Team,

I have set up Rundeck on a Windows server and it works fine for executing jobs on remote windows hosts.  I have a need to run jobs on Linux hosts as well.  I was following this article: https://www.devopsschool.com/blog/how-to-add-linux-node-in-rundeck/

I successfully added a node but when i run a simple command i get below error:
image.png
image.png


ifconfig #25
Settings
Theme
Rundeck Theme
Display Gutter
Display Timestamps
Display Command
Display Node Badge
Render ANSI Colors
Wrap Long Lines
Display Stats
Failed: ConnectionFailure: Connection timed out: connect
Execution failed: 25 in project Self-Service-Project: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [remote-node: ConnectionFailure: Connection timed out: connect + {dataContext=MultiDataContextImpl(map={ContextView(node:remote-node)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, node:remote-node)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, Node failures: {remote-node=[ConnectionFailure: Connection timed out: connect + {dataContext=MultiDataContextImpl(map={ContextView(node:remote-node)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, node:remote-node)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, status: failed]

This is the first time I am trying to configure jobs for Linux hosts and i am sure i have missed something. Just to confirm that from the same machine I can ssh to the Linux box using putty but can't run commands using Rundeck.

Can somebody please help me?





rac...@rundeck.com

unread,
Sep 30, 2022, 6:51:50 AM9/30/22
to rundeck-discuss
Hi Rahul,

If you're using a remote AWS EC2 node (as the guide), please use this model source,

You can put the AWS .pem key on the node executor configuration to access your AWS nodes. More information here.

Regards.

Rahul Saxena

unread,
Sep 30, 2022, 1:15:53 PM9/30/22
to rundeck...@googlegroups.com
One more question. Can we have both Windows and Linux machines configured under one project?  I tried to configure it but my jobs started to fail on Windows hosts so I deleted the linux node that I had added.

Do I need to create a separate project just for Linux hosts?  Below is the error i was getting:

image.png


Thanks,
Rahul
 

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/60098a60-cff5-4a7e-a9bb-c6a3fe17e879n%40googlegroups.com.

rac...@rundeck.com

unread,
Sep 30, 2022, 1:35:24 PM9/30/22
to rundeck-discuss
Sure,

Take a look at this message. Also is possible under Rundeck+Ansible integration, take a look.

Regards.
Reply all
Reply to author
Forward
0 new messages