Win7 git SSH Create key

Source: Internet
Author: User

Premise: Install git and open git bash.

1. Enter the. SSH folder:cd ~/.ssh/

  If you do not have this folder, create one yourself: mkdir ~/.ssh

2, set the GIT global name and email, if it has been configured beforehand, it will not have to be configured.

git config--global user.name "yourname"
git config--global user.email "[Email protected]"

3. Generate your key: ssh-keygen-t rsa-c "[email protected]"

  You need to enter several times in the process, you will get two files after success: Id_rsa and Id_rsa.pub.

File location: C:\Users\Administrator\.ssh It's not exactly the same as yours.

4, open id_rsa.pub with Notepad, copy all of the contents of the Git key paste on the line.

Win7 git SSH Create key

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.