github生成ssh密钥

第一步:git输入命令:$ ssh-keygen -t rsa -C "本身的邮箱"git

下面是脑残式回车: Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Bairong/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Bairong/.ssh/id_rsa.
Your public key has been saved in /c/Users/Bairong/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:aaxtWCobpD6dTpK0f5KeavlKYWQNIqMJWxbspn7lucw 18353623360@163.com
The key's randomart image is:
+---[RSA 2048]----+
|=.=.             |
|+B.o             |
|+.o .            |
| oo    . .       |
| o+ .   S        |
|.o * . B         |
|. *o*o= o        |
| ++=BB..         |
| .=BBE.          |
+----[SHA256]-----+
看见这一串SHA256就成功! 第二步:在本地C盘下,用户目录下找到.ssh文件夹,复制id_rsa.pub文件里的内容 第三步:建立ssh密钥:dom