# ssh key passphrase with credential type

**URL:** <https://forum.ansible.com/t/ssh-key-passphrase-with-credential-type/37847>\
**Category:** AWX Project\
**Created:** [April 3, 2023, 10:25pm UTC](https://forum.ansible.com/t/ssh-key-passphrase-with-credential-type/37847 "2023-04-03T22:25:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashleyghooper](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashleyghooper/32/1063_2.png) [@ashleyghooper](https://forum.ansible.com/u/ashleyghooper)\
**Post date:** [April 3, 2023, 10:25pm UTC](https://forum.ansible.com/t/ssh-key-passphrase-with-credential-type/37847/1 "2023-04-03T22:25:54Z")

</div>

Hi all,  
When using a credential type, is there any way (e.g. ansible magic variable, similar to ansible\_ssh\_private\_key\_file) to pass a private key passphrase so that it will be used?

---

<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:** [April 7, 2023, 5:06pm UTC](https://forum.ansible.com/t/ssh-key-passphrase-with-credential-type/37847/2 "2023-04-07T17:06:46Z")

</div>

There is an option for a prviate key passphrase in in a machine credential type. Is that what you are looking for or do you have another use case?

-The AWX Team
