# deploying ssh keys to remote server. permission error,  but nearly there!

**URL:** <https://forum.ansible.com/t/deploying-ssh-keys-to-remote-server-permission-error-but-nearly-there/32755>\
**Category:** AWX Project\
**Created:** [April 22, 2020, 12:59pm UTC](https://forum.ansible.com/t/deploying-ssh-keys-to-remote-server-permission-error-but-nearly-there/32755 "2020-04-22T12:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_forde](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@andrew\_forde](https://forum.ansible.com/u/andrew_forde)\
**Post date:** [April 22, 2020, 12:59pm UTC](https://forum.ansible.com/t/deploying-ssh-keys-to-remote-server-permission-error-but-nearly-there/32755/1 "2020-04-22T12:59:25Z")

</div>

Trying to deploy keys for each of my team (trying one first) to the wpshere user on a remote server.

code below suggest i hit the remote server but cant quite get in to the wphere .ssh part.

first Ansible task i’ve had - and I’ve had a good look around, guidance, examples to try and complete this.

inventory.txt

#ansible\_user=myuserid

#ansible\_ssh\_private\_key\_file=/home/myuserid/.ssh/id\_rsa.pub

ansible\_become\_user=ansible

remoteserver

upload\_ssh\_keys.yml
