第一步: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