Problem Description:
Git was installed before, but it didn’t work much. Later I thought about putting the demo I made on github, and then generated the key and reported the following. It was stuck for a long time at this step, so I also decided to record it and hope it can help. To you guys!
Resolution process:
First check whether there is a key, and the key storage location:
If there are, some are not used for a long time or if the password is changed, the key seems to be changed. Here I suggest deleting:
execute the following command:
mkdir key_backup
cp id_rsa* key_backup
rm id_rsa*
After the execution, the key generated again is still the one reported.
Configure git environment variables as follows:
Add in path:
After the configuration, I choose not to use the black box of git bash anymore, and choose to use the dos command window.
Open the dos command window and
enter: ssh-keygen -t rsa -C "git account" is
successfully generated:
id_rsa.pub is the ssh key we need