How to GitHub SSH public key under Windows

Source: Internet
Author: User

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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.