Skip to content
Snippets Groups Projects
Commit 02e86e52 authored by Marina Popleteeva's avatar Marina Popleteeva
Browse files

ssh slide

parent 5a152973
No related branches found
No related tags found
No related merge requests found
2022/2022-06-07_git-trilogy-part-2/slides/img/addSSH.png

281 KiB

2022/2022-06-07_git-trilogy-part-2/slides/img/copySSHpublic.png

63.1 KiB

2022/2022-06-07_git-trilogy-part-2/slides/img/keyGen.png

34.4 KiB

SSH key
\ No newline at end of file
# 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).<br>
- Open terminal (command line)
- Type `ssh-keygen -t ed25519 -C firstname.lastname@uni.lu`
- Accept the suggested filename and directory (press Enter):<br>
<img height="100px" src="slides/img/keyGen.png">
- Press Enter without entering the passphrase. <br>
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.<br>
- Copy the contents of your public key file. You can do this manually or<br>
- 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*.<br>
<img height="600px" src="slides/img/addSSH.png">
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment