# authorized\_keys module

**URL:** <https://forum.ansible.com/t/authorized-keys-module/29634>\
**Category:** Ansible Project\
**Created:** [February 6, 2019, 7:11pm UTC](https://forum.ansible.com/t/authorized-keys-module/29634 "2019-02-06T19:11:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [February 6, 2019, 7:11pm UTC](https://forum.ansible.com/t/authorized-keys-module/29634/1 "2019-02-06T19:11:09Z")

</div>

Hi all,

I’m trying to add pubkeys to several users and I’m getting an error message. Here’s the playbook:

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [February 6, 2019, 7:57pm UTC](https://forum.ansible.com/t/authorized-keys-module/29634/2 "2019-02-06T19:57:47Z")

</div>

How does you pub files look like, this key does looks too short?  
You can also check pub files with  
&nbsp;&nbsp;&nbsp;ssh-keygen -l -f files/pubkey/user1.pub

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 6, 2019, 7:58pm UTC](https://forum.ansible.com/t/authorized-keys-module/29634/3 "2019-02-06T19:58:24Z")

</div>

Could it be that the key value has to start with the type of the key?  
I.e. "ssh-rsa" ?
