In the CircleCI application, go to your project’s settings by clicking the the Project Settings button (top-right on the Pipelines page of the project). In a terminal, generate the key with ssh-keygen -t ed25519 -C See Secure Shell documentation for additional details. Note: Since CircleCI cannot decrypt SSH keys, every new key must have an empty passphrase. Note: You may need to add the public key to ~/.ssh/authorized_keys in order to add SSH keys. Otherwise, follow the steps below for the version of CircleCI you are using (Cloud/Server) to add an SSH key to your project. If you are adding an SSH key for the first reason, refer to the GitHub and Bitbucket Integration document.
There are two reasons to add SSH keys to CircleCI:
If deploying to your servers requires SSH access, you will need to add SSH keys to CircleCI.