A detailed description of GitHub SSH key generated under Windows

Source: Internet
Author: User
Tags github ssh key

First, Primer:

What is Ssh:ssh is the abbreviation of Secure Shell (Secure Shell Protocol), which is based on the application layer and the Transport Layer Security protocol. To make it easy to access GitHub, generate an SSH public key so that you don't have to enter a user name and password every time you visit GitHub.

Ii. Conditions of formation:

Please register your account on GitHub and install git locally.

Third, the generation process:

1. After you have successfully installed Git locally, right-click and choose Git bush here to open git bush.

2, type the command: ssh-keygen-t rsa-c "[email protected]", the quotation marks are your registered mailbox on GitHub, then set your SSH password,


3, the second step has been successfully generated SSH key, and then enter the eval "Ssh-agent-s",


4, re-enter Ssh-add ~/.ssh/id_rsa, and then enter the password you set SSH, in the input ssh-add ~/.ssh/id_rsa may produce "could not open a connection to your Authentication Agent "error,


At this point direct input: Ssh-agent bash, and then input Ssh-add ~/.ssh/id_rsa can,


5. Add the key to your GitHub account:

1) Use Vim to copy the contents of key: Vim ~/.ssh/id_rsa.pub, right-click to copy the content that appears,


2) Add to GitHub

Locate the SSH keys in the setting,




Paste the keys that you just copied.

6. Test:

Enter ssh-t [email protected], and the instructions are complete.



A detailed description of GitHub SSH key generated 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.