GIt创建ssh公钥

创建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 "[email protected]"

GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ ssh-keygen -t rsa -C "[email protected]"
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 
************************//这里显示的就是ssh公钥


猜你喜欢

转载自blog.csdn.net/m0_57184607/article/details/120943894