Add multiple SSH public keys in git, and differences between different systems

Source: Internet
Author: User

Git learning has been a while, the basic operation, the password will be a little bit, but there is no GIT team development practice, this needs to be strengthened ~

Git is under Windows to emulate the Linux environment, Linux comes with the SSH service, you can remotely log on to the Linux system through the service, transfer files and so on, or very convenient.

First, today is the first time I use git after I reload the system (WIN8-WIN10), although the installed apps are still there, but not in the right-click menu bar of the desktop, so the first thing I do is to right-click on the desktop and let git appear in the menu bar . The operation is also simple, as long as you modify the registry

  Open Registry---> Hkey_classes_root\directory\background\shell----> New project under Shell git, enter git----on the right side > new under Git project command, the value on the right fills in the path of the GIT program

So it's done.

  

The key to configuring multi-public-key multi-account login is the. config file under the SSH folder, configure the format of the multi-public key as the name implies, you can save the relevant configuration, and then just use it.

Host github2

HostName github.com
User Xiaodan ' Sfather
Identityfile ~/.ssh/my2

In this step, it is generally possible to generate multiple public-private key configuration, you can test the connection according to different protocols such as Git,ssh [email protected] can

  But in the use of WIN8, this is not possible, but also to add the public key to what stack, through two instructions, that can be achieved

Add multiple SSH public keys in git, and differences between different systems

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.