Yesterday did not bring a computer to work, the company's computer is windows, the command line is not used to, simply installed a Linux virtual machine, reluctantly a use, but also save to run around behind the computer. So the problem comes, GitHub does not provide Linux client, but the code is always going to go up, had to be forced to use the command line, followed by a summary of the Linux configuration (refer to other people's not ready, so I write down, the environment is 64-bit Ubuntu 16.04)
1.
Ssh-keygen -t RSA
Own computer, do not set the password what, all the way to enter the line, this time will be generated under the ~/.ssh/two SSH key
2.
ssh-add ~/. ssh/id_rsa.pub
This step is to use the password that you just generated to use as a native SSH
3. Go to the GitHub Personal Settings page, click SSH and Gpgkeys to add an SSH key topic to customize, content copy the following output:
Cat ~/. ssh/id_rsa.pub
4. The above SSH configuration is OK, next is to configure Git
" XXX " "[email protected]"
5. Next Test It ~
ssh -t [email protected]
Git configuration under Linux