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

105 views
Skip to first unread message

Polonius

unread,
Aug 19, 2022, 6:38:38 AM8/19/22
to Ansible Project
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:


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.
Reply all
Reply to author
Forward
0 new messages