Set SSH Key for Git and sshkey for git
Set SSH Key
1. check whether there is an SSH Key.
$ Cd ~ /. Ssh
If this directory is not available, go to step 3.
2. Backup
3. generate a new SSH file.
$ Ssh-keygen-t rsa-C "email"
Press enter directly. Then you will be asked to enter the password. Then a directory named. ssh is generated, which contains two files: id_rsa and id_rsa.pub.
4. Put SSH on github.Use the public key. Register a user on GitHub, and then go to account-setting to copy the id_rsa.pub content.
Copy the content in id_rsa.pub.
5. Test OK. Enter the following command:
$ Ssh-T git@github.com
In ubuntu, you will be asked to enter the password. after entering the password, the user name displayed on GitHub will be displayed.
Then: Set Git account information:
Enter the following command in the terminal:
Git config -- global user. name "username"
Git config -- global user. email "email"
The help document says no token is needed. Then you can start creating a database and start using it.