Run at terminal
ssh-keygen -t rsa -C "[email protected]"
Fill in the information according to the prompts, or leave it blank
After three times of enter, the content shown in the figure below is generated, that is, the generation is successful
ssh -T [email protected]
First use requires confirmation and addition of the host to the local SSH trusted list. If hi XXX! You’ve successfully authenticated, but Gitee.com Do not provide shell access. Content, then the addition is successful.
git clone [email protected]
Please refer to the official website to generate / add SSH public key