-
Notifications
You must be signed in to change notification settings - Fork 66.8k
Add ssh-keygen troubleshooting info for Windows #43714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
a720cee
85b03eb
9aa4442
8882018
1defd14
bda88f5
df8d595
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -167,7 +167,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav | |||||||||||||||||
|
|
||||||||||||||||||
| > ### Troubleshooting SSH agent conflicts in Windows | ||||||||||||||||||
| > | ||||||||||||||||||
| > In Windows environments, the native Windows OpenSSH implementation and the one included with Git for Windows (based on MSYS2/Bash) can coexist. | ||||||||||||||||||
| > In Windows environments, the native Windows OpenSSH implementation and the one included with [Git for Windows](https://gitforwindows.org/) (based on MSYS2/Bash) can coexist. | ||||||||||||||||||
| > | ||||||||||||||||||
| > If you configure and save your passphrases in the Windows agent using PowerShell, Git may still prompt you for your passphrase during operations like `git push`. This can happen when Git for Windows uses its bundled `ssh.exe` (from MSYS2) instead of the Windows system OpenSSH client, and therefore can't talk to the Windows `ssh-agent` service. | ||||||||||||||||||
| > | ||||||||||||||||||
|
|
@@ -176,6 +176,14 @@ 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" | ||||||||||||||||||
| > ``` | ||||||||||||||||||
| > | ||||||||||||||||||
| > 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" | ||||||||||||||||||
| > ``` | ||||||||||||||||||
| > | ||||||||||||||||||
|
||||||||||||||||||
| > | |
| > 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" | |
| > ``` | |
| > | |
| > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Infinitay I understand most of these words, but not in context. Is this something that needs to be addressed or is Copilot mistaken?
Uh oh!
There was an error while loading. Please reload this page.