Skip to content
Snippets Groups Projects
Forked from R3 / school / courses
192 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Key-based authentification

As the first step GitLab needs to be able to recognize you. We will use the most secured method: key-based authentication.

You need to do it just ones (and repated if you change\crash\lost your laptop).

  • Open terminal (command line)
  • Type ssh-keygen -t ed25519 -C firstname.lastname@uni.lu
  • Accept the suggested filename and directory (press Enter):
- Press Enter without entering the passphrase.

A public and private key are generated and stored in specific location on your laptop. You need to add the public key to your GitLab account.

  • Copy the contents of your public key file. You can do this manually or
    • macOS: tr -d '\n' < ~/.ssh/id_ed25519.pub | pbcopy
    • Windows: cat ~/.ssh/id_ed25519.pub | clip
  • Now let's move to GitLab https://gitlab.lcsb.uni.lu/

Key-based authentification

  • On the top bar, in the top right corner, select your avatar.
  • Select Preferences.
  • On the left sidebar, select SSH Keys.
  • In the Key box, paste the copied public key. Make sure it starts with ssh-ed25519 and finishes with your e-mail.
  • In the Title box, type a description, like Work Laptop.