# SSH copy id - permission denied

**URL:** <https://forum.ansible.com/t/ssh-copy-id-permission-denied/29039>\
**Category:** Ansible Developer\
**Tags:** gcp, ubuntu\
**Created:** [November 15, 2018, 3:00pm UTC](https://forum.ansible.com/t/ssh-copy-id-permission-denied/29039 "2018-11-15T15:00:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arvind\_Thatikonda](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Arvind\_Thatikonda](https://forum.ansible.com/u/Arvind_Thatikonda)\
**Post date:** [November 15, 2018, 3:00pm UTC](https://forum.ansible.com/t/ssh-copy-id-permission-denied/29039/1 "2018-11-15T15:00:35Z")

</div>

I created an ansible control server and client. I generated the ssh keys on the control server, used the ssh-copy-id to copy the keys to client server. I get permission denied

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/ansible/.ssh/id\_rsa.pub”

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys

Permission denied (publickey).

I used an Ubuntu server on GCP

Did anyone faced the issue before, can you please suggest any fix for this?

Arvind

---

<div class="post-metadata">

**Author:** ![Arvind\_Thatikonda](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Arvind\_Thatikonda](https://forum.ansible.com/u/Arvind_Thatikonda)\
**Post date:** [November 17, 2018, 2:18pm UTC](https://forum.ansible.com/t/ssh-copy-id-permission-denied/29039/2 "2018-11-17T14:18:09Z")

</div>

resending , if anyone has any suggestions

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [November 17, 2018, 2:45pm UTC](https://forum.ansible.com/t/ssh-copy-id-permission-denied/29039/3 "2018-11-17T14:45:09Z")

</div>

Hi,

why don't you ask this on the user support mailing list  
([https://groups.google.com/forum/#!forum/ansible-project](https://groups.google.com/forum/#!forum/ansible-project))?

This mailing list is for Ansible development, not for user support.

Thanks and best regards,  
Felix Fontein
