vagrant - Ansible "Failed to connect to the host via ssh -


i working virtualbox, vagrant , ansible. worked fine until ran

ssh vagrant@10.10.10.10 

and got following output:

the authenticity of host '10.10.10.10 (10.10.10.10)' can't established. ecdsa key fingerprint sha256:iibqq8qenkquepurycmbbarbchxegwk4br7ksusmyw4. sure want continue connecting (yes/no)? 

i typed "yes", , since every time type vagrant provision, keep getting:

fatal: unreachable! => {"changed": false, "msg": "failed connect host via ssh: warning: permanently added '10.10.10.10' (ecdsa) list of known hosts.\r\npermission denied ().\r\n", "unreachable": true} 

i removed generated key ~/.ssh/known_hosts, keep getting same error.

after ton of time searching answer found solution worked me. added following few lines vagrantfile , reloaded vm

ansible.raw_arguments = [ "--private-key=~/path/to/.vagrant/machines/default/virtualbox/private_key" ] 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -