# \[SOLVED\] Registering ssh keys for direct ssh access

**URL:** <https://forums.balena.io/t/solved-registering-ssh-keys-for-direct-ssh-access/156610>\
**Category:** balenaOS\
**Tags:** support, ssh, network, security\
**Created:** [July 17, 2020, 4:36pm UTC](https://forums.balena.io/t/solved-registering-ssh-keys-for-direct-ssh-access/156610 "2020-07-17T16:36:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenajcrap](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kenajcrap](https://forums.balena.io/u/Kenajcrap)\
**Post date:** [July 17, 2020, 4:36pm UTC](https://forums.balena.io/t/solved-registering-ssh-keys-for-direct-ssh-access/156610/1 "2020-07-17T16:36:01Z")

</div>

according to [balena’s ssh doc](https://www.balena.io/docs/learn/manage/ssh-access/#using-a-standalone-ssh-client), in order to have direct ssh access to a device running a production image, you need to add the client’s public key to [config.json](https://www.balena.io/docs/reference/OS/configuration/#sample-configjson) in the boot partition. However, my config.json looks like what [this doc](https://www.balena.io/docs/learn/more/masterclasses/host-os-masterclass/#6-configjson) describes instead.  
Am I missing something? Are there 2 config.json in different directories?

I have a RPi4 running [balenaOS 2.51.1+rev1](https://github.com/balena-os/meta-balena/blob/master/CHANGELOG.md)

---

<div class="post-metadata">

**Author:** ![ntzovanis](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ntzovanis/32/1150_2.png) [@ntzovanis](https://forums.balena.io/u/ntzovanis)\
**Post date:** [July 17, 2020, 9:01pm UTC](https://forums.balena.io/t/solved-registering-ssh-keys-for-direct-ssh-access/156610/4 "2020-07-17T21:01:11Z")

</div>

Hello @Kenajcrap welcome to our forums!

There’s only one config.json, you just need to add the keys following [this structure](https://github.com/balena-os/meta-balena#sshkeys).

Cheers,  
Nico.

---

<div class="post-metadata">

**Author:** ![Kenajcrap](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kenajcrap](https://forums.balena.io/u/Kenajcrap)\
**Post date:** [July 18, 2020, 12:09am UTC](https://forums.balena.io/t/solved-registering-ssh-keys-for-direct-ssh-access/156610/6 "2020-07-18T00:09:45Z")

</div>

Thank you @ntzovanis, this worked perfectly, I guess what threw me off was that none of the fields in the doc pages I linked to were the same, making it seem like they were different structures.

Solved!
