# Add\_user\_keys fails to install key configured in Checkout keys

**URL:** <https://discuss.circleci.com/t/add-user-keys-fails-to-install-key-configured-in-checkout-keys/23497>\
**Category:** Build Environment\
**Tags:** cli, ssh, keys\
**Created:** [July 10, 2018, 6:43am UTC](https://discuss.circleci.com/t/add-user-keys-fails-to-install-key-configured-in-checkout-keys/23497 "2018-07-10T06:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulkan](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/bulkan/32/18660_2.png) [@bulkan](https://discuss.circleci.com/u/bulkan)\
**Post date:** [July 10, 2018, 6:43am UTC](https://discuss.circleci.com/t/add-user-keys-fails-to-install-key-configured-in-checkout-keys/23497/1 "2018-07-10T06:43:58Z")

</div>

Hi all,

I’m trying to run a project locally via the `circleci build` tool but I’m getting failures because of ssh key configuration.

My project has dependencies on two private github repositories.

I have a user key configured in my projects `Checkout keys` section and according to [this configuration](https://circleci.com/docs/2.0/configuration-reference/#add_ssh_keys) I should be able to add/inject this key to my local docker image.

But the step with `add_ssh_keys` reports;

```
====>> Installing additional ssh keys
There are no configured ssh keys to install

```

And my test `ssh -T git@github.com` fails;

> Permission denied (publickey).  
> Error: Exited with code 255

I’ve been searching for a solution here and the docs but not sure whats going on.

Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![Cormac](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/cormac/32/18955_2.png) [@Cormac](https://discuss.circleci.com/u/Cormac)\
**Post date:** [July 11, 2018, 4:48pm UTC](https://discuss.circleci.com/t/add-user-keys-fails-to-install-key-configured-in-checkout-keys/23497/2 "2018-07-11T16:48:08Z")

</div>

The local build tool is good for validating configs, but bad for general testing. Generally we’d suggest to test on the cloud platform.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [October 9, 2018, 4:48pm UTC](https://discuss.circleci.com/t/add-user-keys-fails-to-install-key-configured-in-checkout-keys/23497/3 "2018-10-09T16:48:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
