Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Key based SSH authentication does not work when switching to mitogen_linear #307
I have followed the installation steps and changed Ansible default strategy to mitogen_linear.
My user is setup to connect using SSH keys. Stock Ansible runs fine without specifying any additional SSH parameter.
The following is the command output using quadruple verbose logging:
This is due to the presence of the word 'password' in the login banner. We can suppress the login banner by passing 'ssh -q' (e.g. via ssh_args in ansible.cfg), but then we lose diagnostic output.
I will investigate updating the logic to only assume a password prompt if no newline appears following the prompt, which seems like a robust test, however it is sensitive to timing and buffering weirdness (SSH process may sleep indefinitely after writing 'password' but before writing the newline), so this might break things worse than they already are.
Please try with the -q workaround above added to your ansible.cfg, and I will investigate some logic fix.
Really the correct solution here is to move to Paramiko, but that's quite a lot of work.