1. Download gitwin7 Client
2. Open "Git bash" tool, initialize the registered git account, email
$ ssh-keygen-t rsa-c "[email protected]"//[email protected "refers to a GitHub mailbox, or you can return by default
Enter file in which to save the key (/C/USERS/ADMINISTRATOR/.SSH/ID_RSA):
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification have been saved in /c/users/administrator/.ssh/id_rsa.
Your public key had been saved in /c/users/administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:C6UB9JIJ8JLLDD4SII5DQCZBWG0BTIITKQMHZ9X0M40 [email protected]
The key ' s Randomart image is:
+---[RSA 2048]----+
| . |
| O. |
|. . . . |
|.. . = |
|+ + . . E. |
| [Email protected] B. O. |
|% B X. . |
| Ob. B X |
|=**oo. |
+----[SHA256]-----+
The output from above can always be the location of the private key and public key
3. Upload the public key to the corresponding server
3.1 Web-side GitHub
Enter the/c/users/administrator/.ssh/directory in the Win7, the text editor opens the id_rsa.pub, copies the content, and then opens the Git settings ssh interface, paste it in to save
3.2 Self-built GitHub server
Copy the file/c/users/administrator/.ssh/id_rsa.pub and place it under the Access user of the Linux server under the. SSH directory (a bit, this is the directory, no one is created), and then the ID_ The contents of the Rsa.pub file are appended to the Authorized_keys
$ cat Id_rsa.pub >> . SSH / Authorized_keys
This article is from the "Dong Yonggang blog" blog, make sure to keep this source http://dongyonggang.blog.51cto.com/9784442/1856957
How to get the GitHub SSH public key under Win7