# Bad owner or permissions on /etc/ssh/ssh\_config.d/50-redhat.conf

**URL:** <https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [November 3, 2023, 5:15am UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126 "2023-11-03T05:15:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nx2804](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nx2804/32/1413_2.png) [@nx2804](https://forum.ansible.com/u/nx2804)\
**Post date:** [November 3, 2023, 5:15am UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126/1 "2023-11-03T05:15:53Z")

</div>

Hi Team,

I often end with the following error in AWX job execution {  
“unreachable”: true,  
“msg”: “Failed to connect to the host via ssh: Bad owner or permissions on /etc/ssh/ssh\_config.d/50-redhat.conf”,  
“changed”: false  
}

kindly assist on this please

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [November 3, 2023, 10:27am UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126/2 "2023-11-03T10:27:11Z")

</div>

Hi,

First off, I moved your post in #Get Help section, which seems more suited to what you’re looking for (@gwmngilfen Hope that’s ok).

Error message seems pretty clear to me; have you checked ownership and ACL on “/etc/ssh/ssh\_config.d/50-redhat.conf” file ? File should be owned by the user running commands through ssh, and permissions should be 0600 or 0644 IIRC.

---

<div class="post-metadata">

**Author:** ![djyasin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/djyasin/32/114_2.png) [@djyasin](https://forum.ansible.com/u/djyasin)\
**Post date:** [November 3, 2023, 5:18pm UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126/3 "2023-11-03T17:18:39Z")

</div>

Hello @nx2804,  
Congratulations on your first post, and welcome!

We wanted to gather a bit more information from you in order to better assist you. What EE image are you using in this situation? This will better help us understand what may be occurring here.

Thank you for your time!

---

<div class="post-metadata">

**Author:** ![akvalentine](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@akvalentine](https://forum.ansible.com/u/akvalentine)\
**Post date:** [January 19, 2024, 5:33pm UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126/4 "2024-01-19T17:33:42Z")

</div>

I am not the OP, but I am running into this error when using ansible-navigator.

My playbooks work fine when run from AAP, and when run using ansible-playbook, I just get the error when running them with ansible-navigator.

Perms on /etc/ssh/ssh\_config.d/50-redhat.conf:  
-rw-r–r–. 1 root root 581 Jul 20 2023 /etc/ssh/ssh\_config.d/50-redhat.conf

For the Execution Environment, I have tried using both a custom one and a RH supplied one, but the error happens with both.  
They are:  
[aaphub-aap.apps.prd.ocp.bldr.com/ansible-execution-env-bfscustom:latest](http://aaphub-aap.apps.prd.ocp.bldr.com/ansible-execution-env-bfscustom:latest)  
[registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8](http://registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8)

I should also point out that this error is new. Navigator worked fine a few days ago. I cannot find anyone who will admit to changing anything in the environment, but that is a possibility, I just don’t know where to look or what changes could affect this.

Thank you, any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![thedoubl3j](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/thedoubl3j/32/103_2.png) [@thedoubl3j](https://forum.ansible.com/u/thedoubl3j)\
**Post date:** [January 19, 2024, 6:06pm UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126/5 "2024-01-19T18:06:53Z")

</div>

hey @akvalentine I would suggest maybe creating a navigator issue if whatever solution that might come from this post doesn’t help you. While the errors are the same, how each tool might handle or throw the error might be different.

This would help the folks who work on navigator assist you more easily.

---

<div class="post-metadata">

**Author:** ![nx2804](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nx2804/32/1413_2.png) [@nx2804](https://forum.ansible.com/u/nx2804)\
**Post date:** [January 20, 2024, 3:23am UTC](https://forum.ansible.com/t/bad-owner-or-permissions-on-etc-ssh-ssh-config-d-50-redhat-conf/2126/6 "2024-01-20T03:23:18Z")

</div>

Sorry for the late reply , Iam using [quay.io/ansible/awx-ee](http://quay.io/ansible/awx-ee) image
