Known_hosts problems with Git in Windows

Source: Internet
Author: User
Tags using git
There was a problem with no connection permissions when using Git to connect a previously configured company internal git server. When prompted to find that the server has switched the internal IP address, you need to reset the IP in the Known_hosts folder.
1. First enter the. SSH folder, there are 4 files in this directory, respectively, config,id_rsa,id_rsa.pub,known_hosts (if not manually created)
2. Backup Delete id_rsa,id_rsa.pub
3. Add the Stricthostkeychecking no statement to the last line of the config file
4. Open the GIT command-line window to rebuild the secret key
Ssh-keygen-t rsa-c "[Email protected]"
5. At this point, you will find some more data in the Known_hosts file, and then copy the newly generated id_rsa.pub content to the GIT website ssh key
6. Enter in the command line: Git remote show origin
If you output the origin information that we configured to indicate that the problem has been resolved, you can then clone or push the warehouse data through the git command.

If you are configuring Git for the first time in Windows, follow these steps to configure:
1. Open the GIT command-line window under the folder where you need to establish the relationship (right-click the folder)
2. Initialize Git:git init
3. Configure personal information: git config--global user.email "[Email protected]"
git config--global user.name "xxx"
The next steps are the same as the steps that begin with step 4th above.

Ps:windows. SSH folder in C:\Users\ ' Computer user name '. SSH

Known_hosts problems with Git in Windows

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.