Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
troubleshooting [2025/07/05 19:22] โ admin | troubleshooting [2025/07/31 17:56] (current) โ admin |
---|
**Handling known_hosts file**\\ | **Handling known_hosts file**\\ |
Whenever you connect to a new Git host using an SSH key, your computer would want to know if the connection to the server is to be allowed. So when you clone a new repository, first //Git Winch// preforms a check to see if the connection is to a "known host". Internally //Git Winch// runs a special batch file "setknownhosts.bat" and that fetches the correct data from the server and if found okay, it would append a file at //known_hosts// which is inside the .ssh sub-folder inside your Windows <userprofile> folder. This uses a special utility called ssh-keyscan and unfortunately, Windows does not update this to the current requirements. So install the latest SSH utilities from https://github.com/PowerShell/Win32-OpenSSH/releases Choose an appropriate .msi installer from the list there and run it. | Whenever you connect to a new Git host using an SSH key, your computer would want to know if the connection to the server is to be allowed. So when you clone a new repository, first //Git Winch// preforms a check to see if the connection is to a "known host". Internally //Git Winch// runs a special batch file "setknownhosts.bat" and that fetches the correct data from the server and if found okay, it would append a file at //known_hosts// which is inside the .ssh sub-folder inside your Windows <userprofile> folder. This uses a special utility called ssh-keyscan and unfortunately, Windows does not update this to the current requirements. So install the latest SSH utilities from https://github.com/PowerShell/Win32-OpenSSH/releases Choose an appropriate .msi installer from the list there and run it. |
| |
| Read more [[knownhosts?do=export_xhtml|about known_hosts here]] |
| |
| |