I have a VM and one vps which both run on Centos 7.

I created an ansible inventory file which contains :

vps_ip ansible_user=root

I got an error : Authentification or permission failure.

I don't understand cause I already copied ssh keys on my vps.


You need to tell ansible which key to use in...

private_key_file = /path/to/your/.ssh/id_rsa
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.