-
Notifications
You must be signed in to change notification settings - Fork 552
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
Feature request: Support for putty/plink ssh.variant (Windows-specific) #3924
Comments
Work-around for me was the following:
[core]
sshCommand = \"C:\\\\Program Files\\\\Git\\\\usr\\\\bin\\\\ssh.exe\"
[ssh]
variant = ssh GitButler was now able to fetch from the Git repo. Onto the next GB error message... |
Thanks so much for investigating this, that will definitely be helpful when trying to get this fixed! |
Same wish here - my environment variable is
The button "Create PR" is without any feedback. Even not an error message... |
Following https://poshsecurity.com/blog/using-the-openssh-client-included-in-windows-10-1809-as-your-gits-ssh-client, it is more easy:
I did not have success with following: Configure to use Windows' ssh for this repository: [core]
sshcommand = C:/Windows/System32/OpenSSH/ssh.exe |
Same env here. I changed it to Now, the -o issue is still a problem. It can be hacked away with a pass-through script that filters out those options, but it's not ideal. |
OK, so I wrote a PowerShell script and I'm using it as a workaround for me. I set The script has requirement clauses for PowerShell Core version 7, but you may be able to use the Desktop version and call powershell instead of pwsh and it will probably work anyways if you remove the clauses (first 4 lines). |
Apologies in advance for another Windows-specific problem. 🫣
On Windows, putty/plink is quite popular as SSH alternative for Git access. Right now,
gitbutler/crates/gitbutler-git/src/repository.rs
Line 166 in 7dda611
I found https://www.kolossi.co.uk/git-plink-unknown-option-o/ that shows the usual fix to get Putty/plink working. In my case, my Windows Git installation has the variant as "putty", not "plink", though:
This is choosable while running the Git for Windows installer.
Subsequent GB error message:
Also, please note that before running into the problem with the "-o" parameter. I got the following due to a space in the GIT_SSH env variable:
Moving the plink executable to a path without spaces moved me along but resulted in the issue that prompted this ticket.
In the meantime, I'll try to set up an SSH executable instead of plink.
The text was updated successfully, but these errors were encountered: