Skip to content
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

"Please enter a valid path to a Plink executable." When selecting "External Open SS #4831

Open
1 task done
del-leehopper opened this issue Feb 23, 2024 · 4 comments
Open
1 task done

Comments

@del-leehopper
Copy link

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

I have tried:
2.43.0-64-bit.exe
2.44.0-rc2-64-bit.exe

git version 2.44.0.rc2.windows.1
cpu: x86_64
built from commit: 0db3af6cead6855bb0d72b7149f5c2d9adb5f835
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 6.3.9600] (Server 2012r2)
Microsoft Windows [Version 10.0.19045.4046]

  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Notepad++
Custom Editor Path:
Default Branch Option: master
Path Option: Cmd
SSH Option: ExternalOpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

On the Windows Server machine, OpenSSH is not installed.
On the Windows 10 Machine, Open SSH is installed.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD

Error occurred during installation. I chose the "Use external OpenSSH" option and got a prompt when clicking "Next".

  • What did you expect to occur after running these commands?

A prompt stating that OpenSSH wasn't installed

  • What actually happened instead?

A prompt that states:
"Please enter a valid path to a Plink executable."
Git - OpenSSH Error

However, when installing on Windows 10 that does have OpenSSH installed, it installed perfectly fine.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

N/A

@dscho
Copy link
Member

dscho commented Feb 23, 2024

The code that needs to be fixed is here.

Basically, there needs to be another if RdbSSH[GS_ExternalOpenSSH].Checked ... else ... conditional, having two different messages instead of the hardcoded Plink error.

@del-leehopper
Copy link
Author

Yes I saw that too. Wasn't too familiar with how this software worked so I didn't want to make a fool of myself.

Should be quite a simple fix I think and will hopefully stop others having a confusing experience too (I thought OpenSSH was installed on this server, but apparently not - a relevant prompt would have saved time and confusion).

@dscho
Copy link
Member

dscho commented Apr 12, 2024

Should be quite a simple fix

I won't have time to implement this (and to test, because I'd have to set up a working Plink first, which I don't have). Do you have the time, @del-leehopper?

@del-leehopper
Copy link
Author

Unfortunately not, my available time is also very limited at the moment, plus I have never used Plink before. Normally, I would be happy to learn, but I really don't have the capacity at the moment, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants