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