0 votes
17 views
How to config Gerrit - Generate New SSH Key?
in Technology by (187k points)

1 Answer

0 votes

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 −

$ ls ~/.ssh

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

SSH Key Existing

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

Generating New SSH Key

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

$ ssh-keygen -t rsa -C "[email protected]"

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.

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.

by (187k points)

Related questions

0 votes
1 answer 27 views
27 views asked Nov 3, 2020 in Technology by JackTerrance (187k points)
0 votes
1 answer 15 views
15 views asked Nov 3, 2020 in Technology by JackTerrance (187k points)
0 votes
1 answer 18 views
18 views asked Nov 3, 2020 in Technology by JackTerrance (187k points)
0 votes
1 answer 15 views
15 views asked Nov 3, 2020 in Technology by JackTerrance (187k points)
0 votes
1 answer 22 views
22 views asked Nov 3, 2020 in Technology by JackTerrance (187k points)
+1 vote
1 answer 22 views
0 votes
1 answer 27 views
+1 vote
1 answer 40 views
0 votes
1 answer 26 views
0 votes
1 answer 21 views
+1 vote
1 answer 17 views
0 votes
1 answer 27 views
0 votes
1 answer 13 views
...