From 30f4f83a4c9cec12918c0b999b6b2a17a0278f27 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 28 Aug 2012 16:28:08 +0300 Subject: [PATCH] Disable PasswordAuthentication when using -c ssh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If PasswordAuthentication is enabled (which is the default) ansible  will spawn (multiple) ssh's with a password-prompt which corrupts  the terminal, and cannot be properly used. So it is better to not allow for password-based authentication using  -c ssh. The result is that authentication fails but Ansible continues to work --- examples/ansible.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ansible.cfg b/examples/ansible.cfg index bc892fc5ab..ac7fdce328 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -76,6 +76,6 @@ remote_port=22 # will result in poor performance, so use transport=paramiko on older platforms rather than # removing it -ssh_args=-o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r +ssh_args=-o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r