Rundeck on docker SSH issue

10 views
Skip to first unread message

Raghu Manne

unread,
Sep 8, 2025, 8:25:00 AM (11 days ago) Sep 8
to rundeck-discuss

Hello,

I have Rundeck set up on an EC2 instance using Docker Compose (rundeck:5.13.0) and I’m trying to run Ansible jobs through it.

From the EC2 host itself, I’m able to SSH into host.com without any issues. However, when I try the same from inside the Rundeck container, the connection hangs and eventually times out.

Error:

fatal: [host.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host host.com port 22: Connection timed out", "unreachable": true}

It looks like SSH is working at the EC2 host level but not from inside the container.
Do I need to configure additional networking settings, volumes (e.g. SSH keys), or environment variables for the container to allow outbound SSH connections?

Any guidance or suggestions would be much appreciated.

Thanks!

Reply all
Reply to author
Forward
0 new messages