Installation Preparation software
Open the Git Bashhexo folder, right: Configure SSH keys to check SSH keys settings, look at the computer's existing SSH key
ssh Check the SSH key of this machine
If prompted:
file or directory
Description is the first time you use Git
To generate a new SSH Key:
Ssh-keygen " e-mail address @youremail.com " #-c uppercase, without quotation marks generatingpublic/fileinwhich to save the key (/ users/your_user_directory/. ssh/id_rsa):< Enter is good >
Then enter the password, you can skip the return, password is to prevent others from submitting content to your project:
for no passphrase):< input encryption string >enter same passphrase again:< re-enter the encryption string >
Show SSH key successfully set:
Add SSH key to GitHub
- Locate the id_rsa.pub file that you just generated, and copy all the contents;
- Login to GitHub and click Account Settings--->ssh public keys---> Add another public keys in the upper right corner
- Paste, and then save
Test can enter the following command to see if the settings are successful, [email protected] Do not modify the section:
SSH-T [email protected]The authenticity of host'github.com (207.97.227.239)'Aa't be established.RSA Key fingerprint is -: -: Ac:a5: the: -: 2d: $: the: 1b: About: 4d:eb:DF: A6: -.Is you sure want to continue connecting (yes/no)?# Enter Yes directlyHi cnfeat! You've successfully authenticated, but GitHub does not provide shell access
Fix it.
Reference: HTTP://WWW.JIANSHU.COM/P/05289A4BC8B2
Hexo quick configuration after reloading system