Skip to content

Commit a720cee

Browse files
authored
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.
1 parent f8e75e0 commit a720cee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
176176
> ```powershell
177177
> git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"
178178
> ```
179+
>
180+
> 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:
181+
> ```powershell
182+
> git config --global gpg.ssh.program "C:/Windows/System32/OpenSSH/ssh-keygen.exe"
183+
> ```
184+
> Alternatively, you can re-install Git for Windows and select the "Use external OpenSSH" option during the installation process.
179185

180186

181187
{% endwindows %}

0 commit comments

Comments
 (0)