How to add SSH Key in Gitlab

How to add SSH Key in Gitlab 

In this article, we are going know about how to add ssh key to your GitLab account from system.

Step 1: Lets go to and  open your profile or setting, and search SSH Keys in Sidebar, click on it.

Step 2: SSH Key page opens, then you will find an option to generate one SSH Key or you can use old SSH Key.

Step 3: You can create and configure ED25519 Keys for SSH - so use the following command on your CMD / Terminal / GitBash as follows:

$ ssh-keygen -t ed25519 -C "<comment>"

The -C which is quoted as comment, there you can put your email address like: -C "" to label or name your generated SSH Key.

Once the command is successful. OUTPUT will be as follows:

HP@HP-PC MINGW64 /c/xampp/htdocs/project (master)
$ ssh-keygen -t ed25519 -C ""
Generating public/private ed25519 key pair.
Enter file in which to save the key (/c/Users/HP/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/HP/.ssh/id_ed25519
Your public key has been saved in /c/Users/HP/.ssh/
The key fingerprint is:
The key's randomart image is:

Step 4: After your SSH key generated as above, now need to copy that generated ED25519 Key known as SSH Key as follows: 

$ cat ~/.ssh/


$ cat ~/.ssh/
ssh-ed25519 asdasdasdasdasdasd/pwb4bcc7sdfsdfsfddsfsdfsd/Jtt2adadadadsXfs

Step 5: Finally we 

© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT