Hi ,
 I am trying to connect to ec2 instance using .pem file in ansible.
I am getting below error.

fatal: [hdi_master1]: UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic).",
    "unreachable": true
}

my inventory:
============

# inventory of servers

#ungrouped servers
hdi_master1 ansible_host=13.234.186.61 ansible_connection=ssh 
ansible_user=centos --private-key=/home/centos/openshift.pem

even though i am passing i am getting above error .can anyone help me 
please.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fb8ec1ed-2346-417b-b056-171d65418f1e%40googlegroups.com.

Reply via email to