From a720ceead92dabaa89a6cc1da6e68f6b9f843b17 Mon Sep 17 00:00:00 2001 From: infinity Date: Tue, 7 Apr 2026 16:24:42 -0400 Subject: [PATCH 1/2] Add ssh-keygen troubleshooting info for Windows Added troubleshooting instructions to help avoid binary conflicts with the ssh-keygen binary between Git for Windows and Window's OpenSSH. --- ...nerating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md index 8d8904f25c82..d4db0ee3ef45 100644 --- a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md +++ b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md @@ -176,6 +176,12 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav > ```powershell > git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe" > ``` +> +> Furthermore, you may need to specify which `ssh-keygen` binary Git should use to avoid conflicts with the binary bundled with Git for Windows. To define which binary is used, run the following command: +> ```powershell +> git config --global gpg.ssh.program "C:/Windows/System32/OpenSSH/ssh-keygen.exe" +> ``` +> Alternatively, you can re-install Git for Windows and select the "Use external OpenSSH" option during the installation process. {% endwindows %} From 85b03ebd3baf8d2b48fcea12fe43c85289684c95 Mon Sep 17 00:00:00 2001 From: infinity Date: Tue, 7 Apr 2026 17:00:47 -0400 Subject: [PATCH 2/2] chore: Resolve lint error MD031 Fixed lint error MD031, blanks-around-fences (Fenced code blocks should be surrounded by blank line) --- .../generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md index d4db0ee3ef45..155138205d50 100644 --- a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md +++ b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md @@ -178,9 +178,11 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav > ``` > > Furthermore, you may need to specify which `ssh-keygen` binary Git should use to avoid conflicts with the binary bundled with Git for Windows. To define which binary is used, run the following command: +> > ```powershell > git config --global gpg.ssh.program "C:/Windows/System32/OpenSSH/ssh-keygen.exe" > ``` +> > Alternatively, you can re-install Git for Windows and select the "Use external OpenSSH" option during the installation process.