# Tower not picking the ssh\_args from the ansible.cfg file

**URL:** <https://forum.ansible.com/t/tower-not-picking-the-ssh-args-from-the-ansible-cfg-file/27829>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 20, 2018, 2:08pm UTC](https://forum.ansible.com/t/tower-not-picking-the-ssh-args-from-the-ansible-cfg-file/27829 "2018-06-20T14:08:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Gupta](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@Rahul\_Gupta](https://forum.ansible.com/u/Rahul_Gupta)\
**Post date:** [June 20, 2018, 2:08pm UTC](https://forum.ansible.com/t/tower-not-picking-the-ssh-args-from-the-ansible-cfg-file/27829/1 "2018-06-20T14:08:04Z")

</div>

Hi community,

I was trying to run the ad-hoc ping from the tower but having issues.  
In my case, I’m trying to manage the RHEL6 server having different cipher suites than RHEL7 . In ansible.cfg file I’ve edited the “ssh\_args = -c aes128-cbc” and ansible cli command works fine.  
but when I use the tower UI, I see that ssh\_args are not being picked up while establishing the ssh connection toward the rhel6 server.

Ansible CLI: (Success)  
SSH: EXEC ssh -vvv **-c aes128-cbc** -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 testserver ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’"‘’

Tower UI: (Debug Error)

ansible 2.5.4  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/var/lib/awx/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]  
Using /etc/ansible/ansible.cfg as config file  
setting up inventory plugins  
Parsed /tmp/awx\_19\_VcxGTo/tmpfswEZ8.awxrest.py inventory source with script plugin  
META: ran handlers  
Using module\_utils file /usr/lib/python2.7/site-packages/ansible/module\_utils/basic.py  
Using module\_utils file /usr/lib/python2.7/site-packages/ansible/module\_utils/\_text.py  
Using module\_utils file /usr/lib/python2.7/site-packages/ansible/module\_utils/parsing/convert\_bool.py  
Using module\_utils file /usr/lib/python2.7/site-packages/ansible/module\_utils/parsing/ **init**.py  
Using module\_utils file /usr/lib/python2.7/site-packages/ansible/module\_utils/pycompat24.py  
Using module\_utils file /usr/lib/python2.7/site-packages/ansible/module\_utils/six/ **init**.py  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/ping.py  
 ESTABLISH SSH CONNECTION FOR USER: root  
 SSH: ANSIBLE\_HOST\_KEY\_CHECKING/host\_key\_checking disabled: (-o)(StrictHostKeyChecking=no)  
 SSH: ansible\_password/ansible\_ssh\_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)  
 SSH: ANSIBLE\_REMOTE\_USER/remote\_user/ansible\_user/user/-u set: (-o)(User=root)  
 SSH: ANSIBLE\_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)  
 SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 testserver ‘/bin/sh -c ‘"’“‘echo ~root && sleep 0’”’"‘’  
 (255, ‘’, ‘No user exists for uid 195\r\n’)  
testserver | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: No user exists for uid 195\r\n”,  
“unreachable”: true  
}

Is there a solution to this problem ?

Thanks
