Iam trying to run a playbook of ansible on the remote host. But the first step of logging in isnt happening. tried the following:
- updated the ansible/hosts file with the remote host credentials
- Adding host_key_checking=false
- In sshd_config file I have set the ChallengeResponseAuthentication =yes (and restarted the ssh)
- Ansible version is 2.3
The output:
fatal: [10.236.155.69]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is\n47:0a:1a:05:f2:49:1e:cc:99:2a:47:d8:67:4f:4c:2e.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
remove with: ssh-keygen -f \"/root/.ssh/known_hosts\" -R 10.236.155.69
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Permission denied (publickey,password,keyboard-interactive).
",
"unreachable": true
}