# Using rancher-cli "Failed to find SSH key for hostname"

**URL:** <https://forums.suse.com/t/using-rancher-cli-failed-to-find-ssh-key-for-hostname/5126>\
**Category:** Rancher 1.x\
**Created:** [January 9, 2017, 8:50am UTC](https://forums.suse.com/t/using-rancher-cli-failed-to-find-ssh-key-for-hostname/5126 "2017-01-09T08:50:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ali](https://forums.suse.com/u/ali)\
**Post date:** [January 9, 2017, 8:50am UTC](https://forums.suse.com/t/using-rancher-cli-failed-to-find-ssh-key-for-hostname/5126/1 "2017-01-09T08:50:33Z")

</div>

Rancher-cli’s ssh command is extremely handy but how can I add the SSH keys for already registered hosts? I couldn’t find anything in the documentation about that?

---

<div class="post-metadata">

**Author:** ![sra](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sra/32/1514_2.png) [@sra](https://forums.suse.com/u/sra)\
**Post date:** [January 9, 2017, 2:48pm UTC](https://forums.suse.com/t/using-rancher-cli-failed-to-find-ssh-key-for-hostname/5126/2 "2017-01-09T14:48:34Z")

</div>

According to the video where the rancher-cli was introduced (on youtube), it will only work for hosts that are provisioned from the rancher server using docker-machine.

I would very much like a way to set a key for existing/externally added hosts as well.

BTW, rancher-cli is awesome. Nice job!
