From 5db28b3fb0a00f7ed1c46c9a9ef2f623b8bda0ca Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Mon, 6 Jun 2022 14:37:06 +0200 Subject: [PATCH] verify ssh connection --- .../slides/ssh.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/2022/2022-06-07_git-trilogy-part-2/slides/ssh.md b/2022/2022-06-07_git-trilogy-part-2/slides/ssh.md index 20c2445c..1436f947 100644 --- a/2022/2022-06-07_git-trilogy-part-2/slides/ssh.md +++ b/2022/2022-06-07_git-trilogy-part-2/slides/ssh.md @@ -41,5 +41,20 @@ Now, let's move to GitLab https://gitlab.lcsb.uni.lu/ - 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> <center> -<img height="400px" src="slides/img/addSSH.png"> -</center> \ No newline at end of file +<img width="60%" src="slides/img/addSSH.png"> +</center> + + + +# Key-based authentication + +Verify that you connect by typing in the Terminal of VS code: +```bash +ssh -p 8022 -T git@gitlab.lcsb.uni.lu +``` + +The first time, you have to enter `Yes` at the displayed question. Once successful, this should display something like: +```bash +$ ssh -p 8022 -T git@gitlab.lcsb.uni.lu +Welcome to GitLab, @firstname.lastname +``` \ No newline at end of file -- GitLab