# how to encrypt ssh\_pass password without asking any more password

**URL:** <https://forum.ansible.com/t/how-to-encrypt-ssh-pass-password-without-asking-any-more-password/38626>\
**Category:** Ansible Project\
**Created:** [December 14, 2023, 7:41am UTC](https://forum.ansible.com/t/how-to-encrypt-ssh-pass-password-without-asking-any-more-password/38626 "2023-12-14T07:41:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [December 14, 2023, 11:32pm UTC](https://forum.ansible.com/t/how-to-encrypt-ssh-pass-password-without-asking-any-more-password/38626/3 "2023-12-14T23:32:08Z")

</div>

According to the conversation at [http://forum.ansible.com/t/ansible-inventory-as-json-and-inline-vaulted-data-does-not-work-works-with-yaml-inventory/2909](http://forum.ansible.com/t/ansible-inventory-as-json-and-inline-vaulted-data-does-not-work-works-with-yaml-inventory/2909)  
true .yaml inventories permit vaulted values, so that should work for your requirements.  
You’ll need to convert your inventory from .ini format to .yml, and vault your password with “ansible-vault encrypt\_string…”,

---

_[View the full topic](https://forum.ansible.com/t/how-to-encrypt-ssh-pass-password-without-asking-any-more-password/38626)._
