report error
[email protected]: Permission denied (publickey). fatal: Could not read from remote repository
Configure SSH
- Enter in cmd:
ssh-keygen -t rsa -C 自己邮箱@qq.com
Enter all the way, the following results appear
- Find where your .ssh file is
- After entering the .ssh file, find the id_rsa.pub file, check the content of the file, and copy the public key content in advance.
cat id_rsa.pub
-
Enter your own GitHub account, open "Settings", find SSH keys
-
When creating a new SHH key, just add the previously copied public key
-
Result display