Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
knownhosts [2025/07/31 13:30] – created adminknownhosts [2025/07/31 17:55] (current) admin
Line 5: Line 5:
 To prevent this, Git looks inside a file called "known_hosts" This is present in the .ssh folder of your user profile directory in Windows. If that file is not available, Git will cry out loud and generate this error about //known_hosts// To prevent this, Git looks inside a file called "known_hosts" This is present in the .ssh folder of your user profile directory in Windows. If that file is not available, Git will cry out loud and generate this error about //known_hosts//
  
-To remove this error, you have to let your computer detect do a proper "handshake" with the Git host you wanted to use. We have made this process easy. +To remove this error, you have to let your computer detect carry out a proper "handshake" with the Git host you wanted to use. We have made this process easy. 
  
   * Go to the application folder of //Git Winch//   * Go to the application folder of //Git Winch//
   * Open the Windows CMD window there     * Open the Windows CMD window there  
-  * Write down the following: +  * Write down the following and press ENTER
          
-    setknownhost.bat <host>+//setknownhost.bat gitlab.com//
          
-   * and press ENTER +The above batch file command you need to run is for gitlab.com ... For github.com you will have to give  
 + 
 +//setknownhost.bat github.com// 
 + 
 +If you have custom Git Host (e.g. you hosted your own Gitea or Gitlab) then you will need to change the argument of that .bat file from gitlab.com or github.com to the domain name of that Git Host. 
 +   
 +   
 + 
 +----- 
 +[[/concepts?do=export_xhtml | Learn the concepts]] | [[/topics?do=export_xhtml | Table of Contents]]  
knownhosts.1753961410.txt.gz · Last modified: by admin