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
Http://www.cnblogs.com/igrl/archive/2010/09/17/1829358.html
How to GitHub SSH public key under Windows (GO)