How To Add An SSH Key In Your GitLab Profile

How To Add An SSH Key In Your GitLab Profile

How To Add An SSH Key In Your GitLab Profile

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed how to create an issue, labels, and milestones in GitLab project.

https://cloudaffaire.com/how-to-create-issue-label-milestone-in-gitlab-using-api/

In this blog post, we will discuss how to add an SSH key in your GitLab profile to enable the cloning of the GitLab project repository using SSH.

Git is a distributed version control system, which means you can work locally but you can also share or “push” your changes to other servers. Before you can push your changes to a GitLab server you need a secure communication channel for sharing information.

The SSH protocol provides this security and allows you to authenticate to the GitLab remote server without supplying your username or password each time. GitLab supports RSA, DSA, ECDSA, and ED25519 keys. Their difference lies on the signing algorithm, and some of them have advantages over the others.

How To Add An SSH Key In Your GitLab Profile:

Step 1: Create an ssh key in your local system.

Step 2: Log in to your GitLab account and navigate to ‘Settings’.

How To Add An SSH Key In Your GitLab Profile

Step 3: Click on the ‘SSH Keys’ section in the left navigation pane. Provide the key value (copied in step 1) and click ‘Add key’.

How To Add An SSH Key In Your GitLab Profile

Step 4: Test if your ssh key is working.

Hope you enjoyed this article. In the next blog post, we will discuss Groups and Sub-Groups in GitLab.

To get more details on GitLab you can follow the below link.

https://docs.gitlab.com/ee/README.html

To Get more details on Git you can follow the below links.

https://cloudaffaire.com/category/devops/git/

https://git-scm.com/doc

 

Leave a Reply

Close Menu