1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Disable PasswordAuthentication when using -c ssh

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
This commit is contained in:
Dag Wieers 2012-08-28 16:28:08 +03:00
parent f9e9753141
commit 30f4f83a4c

View file

@ -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