I'm generated ssh key, and copy it to remote server. When I try to ssh to that server everything works fine:
ssh user@ip_address
User is not a root. If I try to ssh throw ansible:
ansible-playbook -i hosts playbook.yml
with ansible playbook:
---
- hosts: web
remote_user: user
tasks:
- name: test connection
ping:
and hosts file:
[web]
192.168.0.103
I got error:
...
Permission denied (publickey,password)
What's the problem?
-vvvvand post the output.. - Kashyap