GitHub Add SSH Method (Windows edition)

Source: Internet
Author: User
Generate a new SSH key
  1. Open git bash
  2. Input
    " [email protected] "

  3. Enter a file name, default is Id_rsa, this step can be directly selected by default. (multiple users may want to set another name to prevent conflicts)
  4. Enter the password, as above can be selected by default.

Add the newly generated SSH key to the ssh-agent

  1. Check to see if the ssh-agent is turned on and can be entered with git bash
    " $ (ssh-agent-s) "//Using the CMD window, you need to enter Eval $ (ssh-agent-s)

    Display Agent pid 59566

  2. If you use an existing SSH key, you can add the following command to the Ssh-agent
    Ssh-add ~/.ssh/your_ssh_key_file
  3. Add SSH key to your GitHub account.
    Clip < ~/.ssh/id_rsa.pub//copy key to Pasteboard

  4. Added to the SSH and GPG keys option in GitHub settings.



GitHub Add SSH Method (Windows edition)

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.