gitlab-org--gitlab-foss/doc/gitlab-basics/create-your-ssh-keys.md
2019-03-01 15:06:20 +00:00

1.2 KiB

How to create your SSH Keys

  1. Go to your command line and follow the instructions to generate your SSH key pair.

  2. Log in to GitLab with your credentials.

  3. In the upper-right corner, click your avatar and then click Settings.

    Profile settings dropdown

  4. Navigate to the SSH keys tab.

    SSH Keys

  5. Paste your public key that you generated in the first step in the 'Key' box.

    Paste SSH public key

  6. Optionally, give it a descriptive title so that you can recognize it in the event you add multiple keys.

    SSH key title

  7. Finally, click Add key to add it to GitLab. You will be able to see its fingerprint, title, and creation date.

    SSH key single page

Note: Once you add a key, you cannot edit it, only remove it. In case the paste didn't work, you will have to remove the offending key and re-add it.


Congratulations! You are now ready to use Git over SSH, instead of Git over HTTP!