I am studying the use of Ansible, performed the following steps correctly:
<1> Download
<2> Install
<3> Generated keys
<4> Copied one key to node
<5> Checked Ansible version
Now that I do: ansible -m ping webservers -vvvv
I got the following error:
<192.168.29.14> ESTABLISH CONNECTION FOR USER: RCLPROJECT\fni
<192.168.29.14> REMOTE_MODULE ping
<192.168.29.14> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/fni/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 192.168.29.14 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1436556339.1-60920993142459 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1436556339.1-60920993142459 && echo $HOME/.ansible/tmp/ansible-tmp-1436556339.1-60920993142459'
192.168.29.14 | FAILED => SSH Error: Permission denied (publickey,password,keyboard-interactive).
while connecting to 192.168.29.14:22
My "/etc/ansible/ansible.cfg" looks like this:
[defaults]
inventory = /etc/ansible/hosts
remote_tmp = $HOME/.ansible/tmp
pattern = *
forks = 5
poll_interval = 15
sudo_user = root
transport = smart
module_lang = C
gathering = implicit
sudo_exe = sudo
timeout = 10
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
action_plugins = /usr/share/ansible_plugins/action_plugins
callback_plugins = /usr/share/ansible_plugins/callback_plugins
connection_plugins = /usr/share/ansible_plugins/connection_plugins
lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
vars_plugins = /usr/share/ansible_plugins/vars_plugins
filter_plugins = /usr/share/ansible_plugins/filter_plugins
fact_caching = memory
[privilege_escalation]
[paramiko_connection]
[ssh_connection]
[accelerate]
accelerate_port = 5099
accelerate_timeout = 30
accelerate_connect_timeout = 5.0
accelerate_daemon_timeout = 30
[selinux]
I searched for a Google error, but could not find a solution, I installed WinSCP and FireSSH, and I can also connect and see files there, does the error mean that it cannot handle password verification using the keyboard? How to turn it on or off to do it automatically?
Since I'm new, I have not changed the above configuration file, maybe the problem?
Edit:
The hosts file is as follows:
[webservers]
192.168.29.14
Frank source
share