Configuration of ssh key github

(1) open Git Bash to see whether there is an SSH key on the computer:

Input cd ~ / .ssh

(2) Create a new ssh key:

输入 ssh-keygen -t rsa -C "[email protected]"

(3) Use Notepad to open the file id_rsa.pub under the .ssh directory, copy the contents inside, or directly execute the command to view:

$ cat ~/.ssh/id_rsa.pub


4, copy the ssh key to github:

On the GitHub site Click “Settings” > Click “SSH and GPG Keys” > Click “New SSH key”

Github open the site, click on the wrench icon in the upper right corner, then click on the left menu of ssh key, then the right side of the page add ssh key,
copy and paste the contents of the key in to github, title can not fill filled out and save it.

Guess you like

Origin www.cnblogs.com/mtxg/p/11300302.html