This topic describes how to create SSH keys. You do this to use Git over SSH instead of Git over HTTP.
- Go to your command line and follow the instructions to generate your SSH key pair.
- Log in to GitLab.
- In the upper-right corner, click your avatar and select Settings.
- On the User Settings menu, select SSH keys.
- Paste the public key generated in the first step in the Key text field.
- Optionally, give it a descriptive title so that you can recognize it in the event you add multiple keys.
Finally, click the Add key button to add it to GitLab. You will be able to see its fingerprint, title, and creation date.
Note: Once you add a key, you cannot edit it. If the paste didn’t work, you need to remove the offending key and re-add it.