创建ssh公钥
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config user.name
zhen
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config user.email
191022132@qq.com
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config --global user.name "zhen"
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config --global user.email "191022132@QQ.com"
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ ssh-keygen -t rsa -C "191022132@QQ.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/GZ/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/GZ/.ssh/id_rsa.
Your public key has been saved in /c/Users/GZ/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:S4cYMxwUmKIc3HGUX7EALoChHsJjSriKh0zLpYs3ZZo 191022132@QQ.com
The key's randomart image is:
+---[RSA 3072]----+
|+o..oB*o .. |
|=oo.=o .... |
|=B.o .* .. |
|Boo . * . |
|oo . . S . |
|*.+ o . o |
|+=.= . |
|..E |
|.o . |
+----[SHA256]-----+
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ cat ~/.ssh/id_rsa.pub
ssh-rsa
************************
|