Set SSH key under Windows, configure GitHub SSH key

Source: Internet
Author: User
Tags github ssh key

1. Create a new directory and use git tools to open git Bash here

2. Execute the following command ssh-keygen-t rsa-c "[email protected]" where the mailbox is GitHub's mailbox

3. Re-execute the eval "ssh-agent-s" command

4. Input ssh-add ~/.ssh/id_rsa command when error

5. In the above situation, after entering Ssh-add ~/.ssh/id_rsa, the Ssh-add ~/.ssh/id_rsa is executed again after the successful

6. Use Vim to copy the contents of key: Vim ~/.ssh/id_rsa.pub to GitHub

7. Configure GIT Global information

$ git config--global user.name "your_username" #设置用户名

$ git config--global user.email "Your_registered_github_email" #设置邮箱地址

Test whether the SSH keys are set successfully.

$ ssh-t [email protected]

Set SSH key under Windows, configure GitHub SSH key

Related Article

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.