# sshpass: Failed to set controlling terminal in child (TIOCSCTTY)

**URL:** <https://forum.ansible.com/t/sshpass-failed-to-set-controlling-terminal-in-child-tiocsctty/37009>\
**Category:** Ansible Project\
**Tags:** awx, ee\
**Created:** [August 19, 2022, 10:38am UTC](https://forum.ansible.com/t/sshpass-failed-to-set-controlling-terminal-in-child-tiocsctty/37009 "2022-08-19T10:38:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [August 19, 2022, 10:38am UTC](https://forum.ansible.com/t/sshpass-failed-to-set-controlling-terminal-in-child-tiocsctty/37009/1 "2022-08-19T10:38:38Z")

</div>

I’m getting somewhat frustrated with this, I’ve all of a sudden started getting the below error on several servers, other servers do not have the issue (they are all running the same package versions/kernel).

sshpass: Failed to set controlling terminal in child (TIOCSCTTY)

I raised a ticket for Ansible:

[https://github.com/ansible/ansible/issues/78577](https://github.com/ansible/ansible/issues/78577)

In which it was suggested that the issue was with sshpass (although my execution environment has not updated in over 2 months).

I’ve tried switching to paramiko, and now I get:

Failed to authenticate: Bad authentication type; allowed types: [‘publickey’, ‘gssapi-keyex’, ‘gssapi-with-mic’]"

Which seems to me that paramiko is not using public key authentication (password authentication is disabled on the servers).

So I can’t use ssh, and I can’t use paramiko. I can’t find any documentation to disable sshpass (I assume this is not actually needed as I’m only using public key authentication).

So what do I do? My AWX instance has been rendered useless overnight.
