Git configuration under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.