Http://www.cnblogs.com/igrl/archive/2010/09/17/1829358.html 1. Install git and open "Git Bash" 2 from the program directory. Type the command: ssh-keygen-t rsa-c "[email protected]" "[email protected]" is a GitHub account 3. Remind you to enter the name of the key, such as ID_RSA4. Two files are generated under C:\Documents and settings\administrator\: Id_rsa and ID_RSA.PUB5. Copy the key file generated in 4 into the C:\Documents and settings\administrator\.ssh\ directory. 6. Open the Id_rsa.pub file with Notepad, copy the content, on the github.com website to SSH Key Management page, add a new public key, just take a name, paste the contents of the copy. 7. ^_^ OK you need to note that the key file generated in step 2 at the root of the current user, you must put these two files in the current user directory of the ". SSH" directory to take effect. You can only enter create "." On the command line in Windows. The beginning of the folder. The command is mkdir. SSH
[Email protected] xxx~
$ ssh-keygen-t rsa-c "[Email protected]" (Git account)
Generating public/private RSA key pair.
Enter file in which to save the key (/C/USERS/XXXX/.SSH/ID_RSA): (Save Address)
Created directory '/c/users/xxx/.ssh '.
Enter passphrase (empty for No passphrase): (Enter the name of the key)
Enter same passphrase again: (Enter the name of the key repeatedly)
Passphrases does not match. Try again. (Input inconsistent, repeat input)
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved In/c/users/xxxx/.ssh/id_rsa. (Save Address)
Your public key has been saved in/c/users/xxxxx/.ssh/id_rsa.pub. (Save Address)
The key fingerprint is:
sha256:xxxx [email protected]
The key ' s Randomart image is:
Xxxx
How to GitHub SSH public key under Windows