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:
parent
f9e9753141
commit
30f4f83a4c
1 changed files with 1 additions and 1 deletions
|
@ -76,6 +76,6 @@ remote_port=22
|
||||||
# will result in poor performance, so use transport=paramiko on older platforms rather than
|
# will result in poor performance, so use transport=paramiko on older platforms rather than
|
||||||
# removing it
|
# 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue