Unable to SSH as root into target host from Ansible, "Bad owner or permission on /etc/crypto-policies/back-ends/openssh.config" error**

Hello community,

I’m encountering an issue while attempting to SSH as root into a target host from AWX . Here’s the specific error message I’m facing:

Failed to connect to the host via ssh: Bad owner or permission on /etc/crypto-policies/back-ends/openssh.config

However, it’s worth noting that SSH between the Awx server and the target server is working as expected.

Here are some important details:

  • Error Message: Failed to connect to the host via ssh: Bad owner or permission on /etc/crypto-policies/back-ends/openssh.config
  • Context: I’m trying to SSH as the root user into a target host using Ansible.
  • SSH Between Ansible and Target: SSH communication between the Ansible server and the target server is functioning correctly.
  • Environment: I’m using AWX for orchestration.
  • Observations: The error seems to be related to permissions on the file /etc/crypto-policies/back-ends/openssh.config.

Any insights, suggestions, or troubleshooting steps would be greatly appreciated. Thank you for your assistance!

Regards,
Richa

Hello,
We would like to gather a bit more information from you.

  1. Did you set up a machine credential in AWX?
  2. Are you shelling into the task container and running the SSH command there, and what is the exact command you are inputting?
  3. Are you using a custom execution environment?

Any additional steps or information you can provide will be very helpful.