Installation of a GIT client under Windows and its Ssh-key generation

Source: Internet
Author: User
Tags git client
One, download and install the Git for win client

https://git-for-windows.github.io/

Fool download install, recommend git GUI tool: Sourcetree.

Ii. generation of Ssh-key

After installing Git on Windows, right-click on the desktop and there is a git bash here option in the right-click menu to go to the GIT bash console.

Enter Ssh-keygen-t rsa-c "[email protected]", enter your e-mail address, and then go all the way to enter.

At this point in your user directory there will be a. SSH folder, and the folder will have Id_rsa, id_rsa.pub two files, this is the ssh-key you just generated.

At this point, you just need to import the contents of id_rsa.pub into your github or tell your GIT server administrator to help you add permissions.

Third, set up password-free login

In the process of generating ssh-key above, one step is to set the password, all the way to enter means not to set the password, if you set the password, every time you connect to the remote git repository

The time is to enter the password, although safe, but very troublesome, by the following actions can be set password-free login:

Open git bash, enter exec ssh-agent bash, enter eval ssh-agent-s, and then CD into your. SSH directory, enter Ssh-add Id_rsa.

Of course, you can also remove password-free login:

Open git bash and enter ssh-add-d directly.

Installation of a GIT client under Windows and its Ssh-key generation

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.