# Template with mulitple SSH keys

**URL:** <https://forum.ansible.com/t/template-with-mulitple-ssh-keys/38069>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 6, 2023, 10:29pm UTC](https://forum.ansible.com/t/template-with-mulitple-ssh-keys/38069 "2023-06-06T22:29:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beda392](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@beda392](https://forum.ansible.com/u/beda392)\
**Post date:** [June 6, 2023, 10:29pm UTC](https://forum.ansible.com/t/template-with-mulitple-ssh-keys/38069/1 "2023-06-06T22:29:24Z")

</div>

Hi,  
Is there a way to have an AWX template with two different SSH keys assigned to access two different hosts?

Scenerio:  
ansible ping two hosts that use different SSH Keys in the same playbook (template) run?

Regards,

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [June 9, 2023, 5:17pm UTC](https://forum.ansible.com/t/template-with-mulitple-ssh-keys/38069/2 "2023-06-09T17:17:31Z")

</div>

Unfortunately no, only one machine credential is allowed per Job Template.

You could create multiple JTs, each with their own machine credential, then combine these JTs into the same workflow so that you can launch both at once.

AWX Team

---

<div class="post-metadata">

**Author:** ![beda392](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@beda392](https://forum.ansible.com/u/beda392)\
**Post date:** [June 9, 2023, 5:35pm UTC](https://forum.ansible.com/t/template-with-mulitple-ssh-keys/38069/3 "2023-06-09T17:35:42Z")

</div>

Ahh, good suggestion thank you.
