Could not read from remote repository.

Source: Internet
Author: User

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. 

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.