当前位置:网站首页>gerrit configure SSH Key and account, email information

gerrit configure SSH Key and account, email information

2022-08-11 06:34:00 Emily_rong_2021

Configure SSH Key and account, email information

We choose to use SSH to manage the code. Since the transmission between the local Git repository and the GitHub repository is encrypted by SSH, you must let the github repository authenticate your SSH key. Before that, you must generate an SSH key.

Right click anywhere - click "Git Bash Here", enter:
ssh-keygen -t rsa -C '[email protected]'

Where -t specifies the key type, you can set rsa here, -c is the comment of the key, here is set to the mailbox for easy identification;

Just press Enter all the way;

  • Configure username and email:
  1. git config --global user.name "1410475107"
  2. git config --global user.email "[email protected]"

The email is only optional field to identify the key. The email is only the key for identification

When you create the ssh you type (for example): When you create the ssh
ssh-keygen -t rsa -C "any comment can be here"

-t = The type of the key to generate The type of the key
-C = comment to identify the key The comment used to identify the key
So the Comment is for you only and you can putanything inside.
Many sites and software are using this comment as the key name.
So this comment you can enter anything, many sites and software use this comment as the key name.

What is the use of the mailbox behind -C of ssh-keygen?_BaldWinf's Blog - CSDN Blog

Configure SSH Key and account, mailbox information

原网站

版权声明
本文为[Emily_rong_2021]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110515131184.html