# Public key not found

**URL:** <https://discourse.nodered.org/t/public-key-not-found/67175>\
**Category:** General\
**Tags:** security, docker\
**Created:** [31 August 2022 11:32 UTC](https://discourse.nodered.org/t/public-key-not-found/67175 "2022-08-31T11:32:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krzydec](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@krzydec](https://discourse.nodered.org/u/krzydec)\
**Post date:** [31 August 2022 11:32 UTC](https://discourse.nodered.org/t/public-key-not-found/67175/1 "2022-08-31T11:32:20Z")

</div>

Hello.

I'm trying to reuse ssh keys for my node-red projects for the docker instance of the node-red.

I managed to locate the directory where the keys are kept:

```auto
/var/lib/docker/volumes/<container-volume>/_data/projects/.sshkeys

```

and by generating keys figured out that the prefix with the username and underscore is added to your key files:

```auto
<username>_<your-key-name>
eg. myUserName_node-red-key

```

after copying my keys there and remaining them I can see the key in the node-red editor, but the problem is that the public key is not visible.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/14f2f783e1ddcfdb37e78a2a7c77cafdec5d40f6.png)

Node-red is starting without any errors and this is what I can see in the browser console:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/f/afdaa371fbdab09bbdcc764eec5562358f33b7d7.png)

Any idea on how to solve this?

---

<div class="post-metadata">

**Author:** ![krzydec](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@krzydec](https://discourse.nodered.org/u/krzydec)\
**Post date:** [31 August 2022 12:19 UTC](https://discourse.nodered.org/t/public-key-not-found/67175/2 "2022-08-31T12:19:21Z")

</div>

I managed to solve this now. It was down to cert files ownership and permissions.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 September 2022 12:20 UTC](https://discourse.nodered.org/t/public-key-not-found/67175/3 "2022-09-14T12:20:20Z")

</div>

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