Today to change a new computer, forgot to configure GIT environment, go to git server to take code, and then keep the error, and then reconfigure the GIT environment. Process is as follows
Damingwuage:desktop damingwuage$ ssh-keygen-t rsa-c "1011076472@qq.com"
Generating public/private RSA key pair.
Enter file in which to save the key (/users/damingwuage/.ssh/id_rsa): (/users/damingwuage/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
passphrases do not match. Try again.
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Open (/users/damingwuage/.ssh/id_rsa failed:no such file or directory.
Saving the key failed: (/users/damingwuage/.ssh/id_rsa.
Damingwuage:desktop damingwuage$ ssh-keygen-t rsa-c "1011076472@qq.com"
Generating public/private RSA key pair.
Enter file in which to save the key (/USERS/DAMINGWUAGE/.SSH/ID_RSA):/users/damingwuage/.ssh/id_rsa
/users/damingwuage/.ssh/id_rsa already exists.
Overwrite (y/n)? Y
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved In/users/damingwuage/.ssh/id_rsa.
Your public key has been saved in/users/damingwuage/.ssh/id_rsa.pub.
The key fingerprint is:
Ed:fc:a4:9d:28:8a:e3:65:43:a4:45:2e:95:39:a9:17 1011076472@qq.com
The key ' s Randomart image is:
+--[RSA 2048]----+
| o+ |
| +e |
| .. +o |
| .=. . |
| ... S. |
| . o |
| + O. |
| .+ .. * . |
| . O... O + |
+-----------------+
After the configuration is complete,
Add SSH key to GitHub
Open id_rsa.pub file with your favorite text editor, the information inside is SSH key, copy this information to GitHub's Add SSH key page.