当前位置:网站首页>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:
- git config --global user.name "1410475107"
- 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
边栏推荐
猜你喜欢
随机推荐
Asp doNet Mvc4绑定js脚本用法
STM32学习总结(一)——时钟RCC
mount命令--挂载出现只读,解决方案
关于openlayer中swipe位置偏移的问题
Goldbach's conjecture and the ring of integers
STM32 基于固件库的工程模板的建立
字节(byte)和位(bit)
Tinker接入全流程---编译篇
MSP430学习总结(二)——GPIO
深度学习Matlab工具箱代码注释
js 学习进阶(Dom部分 pink老师教学笔记)
STM32学习笔记(白话文理解版)—小灯的点亮、闪烁、呼吸
端口的作用
2021-09-11 C language variables and memory allocation
C语言中switch的嵌套
华为云IOT平台设备获取api调用笔记
scanf函数在混合接受数据(%d和%c相连接)时候的方式
IIC and SPI
使用ActiveReports制作第一张报表
Visual studio2019 configuration uses pthread