Skip to content

Adding SSH Key

  1. Start by generating ssh keys.
  2. Copy contents of public key file ending with .pub extension.
  3. Login to GitLab website and navigate to Preferences > SSH Keys section. GitLab SSH Keys
  4. At the right upper corner, click on Add new key.
  5. In the Key field, copy the public key which was copied in step 2.
  6. Optionally specify Expiration date to invalidate the SSH key on specified date. GitLab Adding SSH Keys
  7. To save the entered key it is necessary to press the Add Key button.