Windows under how GitHub SSH public key 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\ when generating the public key in the cmd command: Ssh-keygen
Error could not create directory '//.ssh '
Cause: There is no home environment variable set for this machine
Workaround: Set the home environment variable to C:\Documents and Settings 1. Right---git GUI HERE2. Help--show Sshkey3. Then the build is ready. Win7 generated in C:\Users\ ADMINISTRATOR\.SSH below
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.