You are correct here. I would suggest using a specific key that you generate on the server(s) that you are deploying to rather than using “your” key.
We encrypt the data at rest, and the web form is over TLS so there is no significant risk of uploading and using the key this way.
What I typically do is:
- Log into my server that I want CircleCI to deploy to as the user that is going to be doing the deployment (not root).
- Run
ssh-keygen
- Copy
~/.ssh/id_rsa
to the CircleCI web form - Copy
~/.ssh/id_rsa.pub
toauthorized_keys
Best,
Lev