# SSH keys in Dockerfile

**URL:** <https://discuss.circleci.com/t/ssh-keys-in-dockerfile/23557>\
**Category:** Build Environment\
**Created:** [July 12, 2018, 9:58am UTC](https://discuss.circleci.com/t/ssh-keys-in-dockerfile/23557 "2018-07-12T09:58:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 12, 2018, 7:31pm UTC](https://discuss.circleci.com/t/ssh-keys-in-dockerfile/23557/2 "2018-07-12T19:31:07Z")

</div>

Glad to hear you like CircleCI! In CircleCI 2.0, there’s an [in-built feature](https://circleci.com/docs/2.0/add-ssh-key/) to add required SSH keys to a build. Once you add your keys you can [add\_ssh\_keys](https://circleci.com/docs/2.0/configuration-reference/#add_ssh_keys) to the config and they’ll be made available to the build.

If this isn’t quite what you’re looking to do, let me know and I’ll see if I can help further.

---

_[View the full topic](https://discuss.circleci.com/t/ssh-keys-in-dockerfile/23557)._
