Preparation – Linux computer
First of all, a ssh key is required. Generate a key par with this command:
ssh-keygen -t rsa -b 4096 -C "firstname.lastname@example.org"
The key pair should be located here:
Copy the content of the public key file: id_rsa.pub.
Login with your user and go to Settings -> SSH Keys and paste the content of the public key in the intended input field and click “Add key”
Testing the connection
ssh -T email@example.com Welcome to GitLab, @your_username!