12-10-2023

12-10-2023

A.K.


Creating an SSH key


SSH stands for Secure Shell or Secure Socket Shell, used to manage networks, operating systems, and configurations, and authenticate to the GitLab server without using a username and password every time.


You can set up SSH keys to ensure a secure connection between your computer and GitLab. Before generating the SSH key, you need to install Git on your system.



We can start.


Step 1.

To create an SSH key, open a command prompt and enter the command.

Press the "Windows" + "Q" buttons.

Then open Windows PowerShell as Administrator.

Windows PowerShell


Enter the command:

ssh-keygen


You will be prompted to "Enter the file in which to save the key (//.ssh/id_rsa):", simply enter the file name and press Enter.

Next, you will be asked to enter a password: "Enter a passphrase (blank if there is no passphrase):."

Enter some password and press Enter.

You will see the generated SSH key.

generated SSH key


Step 2:

Now login to your GitLab account.

Link FEL Gitlab.

login

Then click on "Edit profile".

edit settings


Step 3:

To create an SSH key, click the SSH Keys tab on the left side of the menu.


settings Gitlab


Step 4:

Now go to your C drive, you will see a file with the .pub extension which was created in the first step.


path


Step 5:

Then open the id_rsa.pub file, copy the SSH key, and paste it into the highlighted Key field as shown in the image below.


.pub file


SSH hey settings



Step 6

Click the Add Key button to add the SSH key to GitLab. You will see the fingerprint (this is the short version of the SSH key), header, and creation date.


add SSH


Good luck!

If you have any other questions or ideas for what I could add, you can write me here.

More articles will be in this group.














Report Page