SSH error during playbook execution

We have successfully deployed in Rocky Linux 9.3 the AWX environment in a Docker container.

We believe that the problem comes because I have created the ssh credential with the Rocky root information and not the container.

We can’t find a way to load the credentials of the container root user to the AWX credential.

When we run the Playbook we get the following error:

d/05-redhat.conf /etc/ssh/ssh_config.d/05-redhat.conf /etc/ssh_config.d/05-redhat.conf line 3: not matched ‘final’\r\ndebug2: match not found /etc/ssh/ssh_config.d/05-redhat.conf line 5:…
we did not send a packet, disable method “method1: No more authentication methods to try.nroot@10.x.x.x: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).”,
“changed": false

Can you Help me with this problem, thanks in advance.

Hard to understand your post but typically default configurations of SSH disallow remote root login. Check the SSH config file on your remote node or better yet use a non-root user dedicated for Ansible.

1 Like