Terminal cloning does not have permissions and the SSH keys required to generate Git

Source: Internet
Author: User
Tags git clone


When we github see a nice third party library, maybe we want to put him git to the local, we need to copy his SSH URL, as shown below:

















After the address is copied, we need to open the terminal and enter the command: Git clone + SSH URL, take the top example, we need to enter: Git clone git@github.com:zhangmangyuan/pullingrefres htableview.git//lose your own.


Enter when you are finished, and you will see the following figure:


From the last sentence in English: Please make sure your have the correct access rights. Please make sure you have the right access rights. The problem is that you didn't add SSH keys to the GitHub. Log on to your own GitHub account, then click on the settings in the upper-right corner, and then you can see the option of an SSH keys on the left, and if it's not added before, then it's empty, and I've got two inside. As shown in figure:






We can see the button on the right Add SSH key, and then we can see it as shown in the picture:


Title is to give your computer SSH key up a name, you can start at will, but there is a key below, this thing to where to get it, below to enter our today's topic add SSH keys, first we need to open the terminal, and then enter the bottom jump command:
ssh-keygen-t RSA

The input process will appear three times to let you enter the information, always press the ENTER key, only one time when the prompts y/n press Y, nothing else, until the build as shown in the image even if successful, such as figure:


Then in the terminal input a command:
Pbcopy < ~/.ssh/id_rsa.pub
After the input is completed, this is a copy of the command, he will direct the required key to copy the Clipboard, and then just add the key address, directly paste out on it. Then click Add Key to do it. Then go to the clone code will be no problem.

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.