• Gerrit Tutorial
  • Setting up Git

It depicts that we are requesting the ssh key generation from Git. It comes pre-installed with Unix systems and Windows 10 onwards. Before Windows 10, PuTTY achieved the same goal.-t: This option defines that we are about to describe the type of key we want to generate. The keys can be of DSA or RSA type. Rsa: This asks Git to generate RSA keys.

  • Set Up SSH Keys in Gerrit
  • Prepare to work with Gerrit
  • How to Submit a Patch
  • How Code is reviewed in Gerrit
  • Gerrit Useful Resources
  • Selected Reading

Generate Ssh Public Key For Git Download

SSH stands for Secure Shell or sometimes Secure Socket Shell protocol used for accessing network services securely from a remote computer. You can set the SSH keys to provide a reliable connection between the computer and Gerrit.

You can check the existing SSH key on your local computer using the following command in Git Bash −

After clicking the enter button, you will see the existing SSH key as shown in the following image −

If you don't find any existing SSH key, then you need to create a new SSH key.

Generating New SSH Key

Generate Ssh Public Key For Git

Generate Ssh Public Key

You can generate a new SSH key for authentication using the following command in Git Bash −

If you already have a SSH key, then don't a generate new key, as they will be overwritten. You can use ssh-keygen command, only if you have installed Git with Git Bash.

Generate Ssh Public Key For Git Code

When you run the above command, it will create 2 files in the ~/.ssh directory.

  • ~/.ssh/id_rsa − It is private key or identification key.

  • ~/.ssh/id_rsa.pub − It is a public tv.

Coments are closed
Scroll to top