# Struggling to get private key credentials working

**URL:** <https://forum.ansible.com/t/struggling-to-get-private-key-credentials-working/30600>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 19, 2019, 1:40pm UTC](https://forum.ansible.com/t/struggling-to-get-private-key-credentials-working/30600 "2019-06-19T13:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Eardley](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@Stephen\_Eardley](https://forum.ansible.com/u/Stephen_Eardley)\
**Post date:** [June 19, 2019, 1:40pm UTC](https://forum.ansible.com/t/struggling-to-get-private-key-credentials-working/30600/1 "2019-06-19T13:40:43Z")

</div>

I’m new to AWX and have reached a point where I’m trying to run some test jobs on my test host.

I’ve created my inventory containing 1 host and have created a machine credential for that host where I’ve specified the private key (from the test host root user: id\_rsa) and username (root) but when I try and run simple ping tests I get the following responses;

Enter passphrase for /tmp/awx\_10\_gj9d93yy/artifacts/10/ssh\_key\_data

Enter passphrase for /tmp/awx\_11\_zr6s99ro/artifacts/11/ssh\_key\_data

I’m not sure what this actually means as the private key I’m testing with does not use a passphrase and is for the root user on the target machine.

Any ideas please?

---

<div class="post-metadata">

**Author:** ![Patrice\_Gagnon](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@Patrice\_Gagnon](https://forum.ansible.com/u/Patrice_Gagnon)\
**Post date:** [June 30, 2019, 11:40am UTC](https://forum.ansible.com/t/struggling-to-get-private-key-credentials-working/30600/2 "2019-06-30T11:40:50Z")

</div>

Do you tell your job to use the credential you create for the ssh key?

---

<div class="post-metadata">

**Author:** ![Nivedita](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nivedita](https://forum.ansible.com/u/Nivedita)\
**Post date:** [August 19, 2019, 5:12am UTC](https://forum.ansible.com/t/struggling-to-get-private-key-credentials-working/30600/3 "2019-08-19T05:12:32Z")

</div>

Hi Stephen,

Create a machine creadential  
Provide credential name, username(IP of host) or password (Password of host machine) to the credential.

Hope this will work.

Regards
