Objective
If you set a password before you created SSH, it's very likely that the git operation has a forgotten password. How to solve this situation. Workaround
In this case do not think about how to re-modify the password, choose to re-create an SSH key, (PS: According to the investigation is git to ensure security does not have the option to re-modify the password).
Let's first check if there is ssh locally. Use:
CD ~/.ssh
Enter the. SSH folder
LS View all files.
If there is a local SSH key, there will be id_rsa.pub,config,known_hosts and other files. If there is no SSH on the local CD ~/.ssh This step may be unable to find a file hint.
The next is to create a new ssh. The command is as follows:
Ssh-keygen-t rsa-b 4096-c "your_email@example.com"
If you have SSH locally, you will see the following prompt:
Choosing Y here means overwriting the local SSH key, which is the meaning of the SSH key deletion.
Next is to let you enter the password, we have forgotten the password experience, this time we create SSH do not enter the password, we directly press ENTER.
The next thing is to post the created secret key to the SSH and GPG keys in Settings, GitHub.