Set Git user name and email:
$ git config --global user.name "xxx"
$ git config --global user.email "[email protected]"
.Check whether the key already exists (if it can be entered, it means it already exists, so delete the folder and create it again):
cd ~/.ssh
Generate SSH key:
$ ssh-keygen -t rsa -C "[email protected]"
Press 3 Enter keys and the password is empty.
The file storage location is ~/.ssh. If it is window, it is under: C:\Users\Administrator.ssh. Of course, if you are not an Administrator user, you need to change to the corresponding user.
When setting the ssh key, the ssh client must select OpenSSH mode.