# PassPhrase for Private key for ansible

**URL:** <https://forum.ansible.com/t/passphrase-for-private-key-for-ansible/10351>\
**Category:** Get Help\
**Created:** [October 17, 2024, 8:50am UTC](https://forum.ansible.com/t/passphrase-for-private-key-for-ansible/10351 "2024-10-17T08:50:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annonymous](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/annonymous/32/5181_2.png) [@Annonymous](https://forum.ansible.com/u/Annonymous)\
**Post date:** [October 17, 2024, 8:50am UTC](https://forum.ansible.com/t/passphrase-for-private-key-for-ansible/10351/1 "2024-10-17T08:50:16Z")

</div>

If my private key has a passphrase how can I put in inventory file? and it should be autonomous, not interactive.

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [October 17, 2024, 2:30pm UTC](https://forum.ansible.com/t/passphrase-for-private-key-for-ansible/10351/2 "2024-10-17T14:30:26Z")

</div>

use paramiko and pass passphrase as you would an ssh password, paramiko itself will use any ssh password as a passphrase
