一,Github简介
二,创建SSH (每次提交可以不用输用户名密码)
HTTP方式需要每次用户名密码认证
在Github中 新增SSH
打开一个终端并生成一个SSH的Key文件
nvidia@nvidia-System-Product-Name:~/.ssh$ ssh-keygen -t rsa -b 4096 -C "stjohnson_free@hotmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/nvidia/.ssh/id_rsa): id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in id_rsa
Your public key has been saved in id_rsa.pub
The key fingerprint is:
SHA256:M29CtZGICj+ugMrPdatg3paeiURbJAoWGvxdYYcNYcw stjohnson_free@hotmail.com
The key's randomart image is:
+---[RSA 4096]----+
|o. o**. |
|.o. oE.o . |
|o.o...o . + |
|o .+oo . o |
| . .+. S . |
|. ..o. . + |
|o =..... o |
|o.=.=o+ .o |
|..o=o*.. |
+----[SHA256]-----+
生成好的文件:
将公钥添加至Github:
配置多用户: