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 workpull/4420/head
parent
f9e9753141
commit
30f4f83a4c
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue