GitHub pull code requires SSH authentication
Git is a distributed Code management tool, remote code management is SSH-based, so to use the remote git requires SSH configuration.
one, set git: set git's user name and email:$ git config--global user.name "xxx" $ git config--global user.email "[Email prot Ected] "View git configuration: $git config--lis
Two, generate SSH key process: 1. See if you already have an SSH key: cd ~/.ssh If there is no key then there will be no such folder, there is a backup to delete 2. Survival key: $ Ssh-keygen-t rsa-c "[email protected]" Press 3 Enter, password is empty the key is generally not used here. Finally, two files were obtained: Id_rsa and Id_rsa.pub 3. Add a private key to Ssh:ssh-add Id_rsa before you enter the password (if any). 4. Add the SSH key on GitHub, which adds the public key in "Id_rsa.pub". Open http://github.com, log in to Xushichao, and then add SSH. Note that in this case, the direct copying of the sticky public key may result in the addition of some characters or fewer characters, and it is best to use the system Tools Xclip to do these things. Xclip-selection c id_rsa.pub
Note: key generation do not change, if you have generated to ~/.ssh folder down to find. Id_rsa.pub file contents are all on GitHub.
git ssh key creation and GitHub use