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.
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