Failed to connect to the host via ssh Warning Permanently added ECDSA to the list of known hosts r nec2-user 3 7 248 36 Permission denied publickey gssapi-keyex gssapi-with-mic

–1 vote

Hi Guys,

I am trying to install Httpd software in EC2 instance using the Ansible playbook. But it is showing me the below error.

fatal: [3.7.248.36]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '3.7.248.36' (ECDSA) to the list of known hosts.\r\nec2-user@3.7.248.36: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).", "unreachable": true}
Sep 21, 2020 in Ansible by akhtar
• 38,260 points
16,469 views

1 answer to this question.

0 votes

Hi@akhtar,

There is a problem with your key. You need to provide your key to your Ansible Playbook. You can provide your key in ansible.cfg file as shown below.

private_key_file = 
answered Sep 21, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer

Playbook to add hosts to the known hosts list - Ansible

Hey @Kiran, try something like this: - name: ...READ MORE

answered Mar 26, 2019 in Ansible by Haider
3,356 views
0 votes
1 answer

FAILED! => { "msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"

Hi@akhtar, Ansible needs extra software to run commands ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,460 points
11,668 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,064 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP