- GitLab Tutorial
- GitLab Basics
- GitLab Users and Groups
- Generating your SSH key on Windows As Windows does not have a fully functioning terminal, we have to take some other steps to install Git and generate our SSH key. We will take a look at how this is done in this recipe.
- If you need acess to two different git accounts, repeat the process by saving the key with a new name. Add the public key to Gitlab or Github. Copy the public key you’ve created (is under the text Public key for pasting into OpenSSH authorizedkeys file). Open your Github or Gitlab account and go into SSH keys settings screen.
If you have GitHub Desktop installed, you can use it to clone repositories and not deal with SSH keys. It also comes with the Git Bash tool, which is the preferred way of running git commands on Windows. Ensure the ssh-agent is running: If you are using the Git Shell that's installed with GitHub Desktop, the ssh-agent should be running.`
- GitLab Issue Tracker
- GitLab Instance Management
- GitLab Continuous Integration
- Selected Reading
The SSH stands for Secure Shell or Secure Socket Shell used for managing the networks, operating systems and configurations and also authenticates to the GitLab server without using username and password each time. You can set the SSH keys to provide a reliable connection between the computer and GitLab. Before generating ssh keygen, you need to have Git installed in your system.
Creating SSH Key
Step 1 − To create SSH key, open the command prompt and enter the command as shown below −
It will prompt for 'Enter file in which to save the key (//.ssh/id_rsa):', just type file name and press enter. Next a prompt to enter password shows 'Enter passphrase (empty for no passphrase):'. Enter some password and press enter. You will see the generated SSH key as shown in the below image −
Step 2 − Now login to your GitLab account and click on the Settings option.
Step 3 − To create SSH key, click on the SSH keys tab at left side of the menu.
Step 4 − Now go to C drive, you will see the file with .pub extension which was generated in the first step.
Ssh Key Generation Windows Gitlab Server
Step 5 − Next open the key.pub file, copy the SSH key and paste it in the highlighted Key box as shown in the below image −
Generate Ssh Key Windows Gitlab
Step 6 − Click on the Add Key button, to add SSH key to your GitLab. You will see the fingerprint (it is a short version of SSH key), title and created date as shown in the image below −