Unable to connect to ec2-host (errors with permission denied errors) in AWS.

   1. Have the following entry in inventory file
   2. Following command was executed ansible -vvv test_ansible --user 
   ansible --private-key=/home/ansible/.ssh/id_rsa -m ping 
   --become-user=ansible

It is trying to connect as ec2-user@ec2_remotehost |FAILED> SSH Error: 
Permission denied (publickey).
while connecting to ec2_remotehost:22

If this is already fixed, let me know the bug number and I can close this 
as duplicate.

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1640dc99-5bf9-4a04-aefb-f6ba8f927749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to