I have created a project in NR and linked it to my repo on bitbucket.
To connect to bitbucket, I created an SSH key in NR and then added the key into Bitbucket.
My project is deployed in a docker container on a Rpi 4.
I am wondering if there is a way to reuse the created SSH key?
Because it seems like for every new deployment of a Rpi 4 of the same project I will need to keep creating a new SSH key and then add that new key into Bitbucket. In no time, my Bitbucket will be full of SSH keys.
Thanks in advance
Welcome to the forum @gylim78
Do you mean that you will have many PIs and want to use the same key for all of them?
Do you need the key in order to be able to read from the repository, or is it public?
Or do they all need to be able to write to the repo?
Most likely, we will need to write to the repo.
Whilst I am sure it is possible to replicate the key, it would certainly be frowned on from the security point of view. Have you consider what would happen if one of these (presumably hundreds) of PIs was compromised in some way? In order to protect the repo you would have to revoke the key and then you would need to create new keys in all the other PIs
Thanks for your advise.
I guess I will create a new SSH key for each device then.