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

,

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

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.