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