GIT generates a public key using the command line without entering the username password (Windows)

Source: Internet
Author: User

Previously set once, and then forget, today after the password to find the command line clone to verify the identity failure, reset the public key, record

1. Because the public key was previously set, the git command can be executed without entering a username password. Now that the password has changed, cancel the public key, the simplest is to delete the public key directly, the execution of the GIT command will be re-popup User name Password dialog box. Or use git config--global user.email "email" to reset the mailbox, as well as the use of the command line to re-pop the user name Password dialog box

2. Now, I want to generate a public key with a new username password. Very simple, open the GIT installation location, find Git-bash.exe, double-click to open

3. Enter Ssh-keygen carriage return

4. Do not change the path, continue to enter, because I have generated a public key file before, so you need to override the overwrite

5. Now enter your password, lose the password will not be prompted, rest assured that the good. Enter the password two times, go to the following path to find this file

6. Copy the contents of this file to the location where you set up SSH keys

7. This will not always need to enter the user name password ~ ~ ~

GIT generates a public key using the command line without entering the username password (Windows)

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.