git set SSH key

Source: Internet
Author: User
Tags ssh

STEP1:

On the command line, enter

Ssh-keygen-t rsa-c "Emailname@email.com"

Then all the way to enter, you can generate an SSH key file. namely Id_rsa & Id_rsa.pub.

(The default directory is reflected in the build process, so be aware.) If there is no change, the default path is in the user's home directory. SSH)


STEP2:

Open the GIT server and select Add SSH key to copy the Id_rsa.pub content from the user's home directory to the inside.



Ok. The difficulty of this encounter is mainly to find the user home directory. Think it's git's installation directory.

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.