Installing SDK on Windows : bash.exe cannot find ssh-keygen.exe

Hi, I am trying to install the SDK on Windows.
I have Git for Windows installed, but I use Windows’ OpenSSH.

During installation it asks for the location of bash.exe, and then complains that ssh-keygen.exe was not found in the bash installation.
Tried selection either C:/Windows/System32/bash.exe, or C:/Program Files/Git/bin/bash.exe, but both with the same error.

ssh-keygen.exe (from openssh shipped in Windows, not Git’s one), is available on the system, and I would like to keep using it (so not installing other ssh apps).

Any idea how to continue installation of the SDK ?

I would really recommend you to use the true MSYS2 environment. It is more reliable and more powerful option at the same time. Check Installation | Sailfish OS Documentation. ssh-keygen.exe is not the only dependency, just the first one the installer failed to look up.

2 Likes

Thanks. Yes, I saw the documentation and I am hesitant to install it to not clutter my device.

I install it, and the installation went fine. Although openssh isn’t installed by default with msys2, I have to pacman it.

Strange, this reminds me of https://github.com/sailfishos/docs.sailfishos.org/issues/30. Maybe you checked before you installed git?

I didn’t install git in msys2. I installed openssh in msys2, and installation went fine after that.

That’s the issue then - the Installation | Sailfish OS Documentation instruct you to install base-devel and git for a reason :slight_smile:

1 Like

Not sure why, but I’m failing to connect to the build engine with a timeout error (from the IDE or the terminal).
I also tried all uninstalling, then reinstall following exactly the instructions but with the same error.
The emulator also shows a blank black window, even though I have virtualization enabled and other VM guests (such as Ubuntu) work correctly in virtualbox.

There have been issues with recent VirtualBox releases on Windows. 6.1.24 works well for me - please try downgrading to that version.

1 Like

Thanks, that was it ! :slight_smile:
Downgraded and all is good now, both build engine and emulator working great.

Great :slight_smile: I would consider marking the very first reply as the solution (Installing SDK on Windows : bash.exe cannot find ssh-keygen.exe - #2 by martyone). The one you marked is a bit unrelated to your original question.

2 Likes

Hello. If the only option is to install msys2, why you keep “choosing bash from Git for Windows” recommendation, which is misleading? (if not simply say “wrong”).

Please tell, how to be with “bash from git for windows” or remove it as option from SDK installer

Msys2 is not available on Win7. Seems that it is not possible to install SDK here.

UPD. manual copying of ssh-keygen.exe (from OpenSSH-Win64.zip) into C:\Program Files\Git\bin made this step passed.
Seems everything is on duty now.

VERY strange decision to look for ssh-keygen.exe close to bash.exe. Every person in the world has OpenSSH installed in the location of bash. Sure. In your strange world.

Direct question “give me please path to OpenSSH” (and having OpenSSH installed on windows in prerequisites to SDK) is too stupid, as far as i see. Agree.

2 Likes

Right - Installation | Sailfish OS Documentation.

Thanks to this, power users may hack their unsupported way through and use e.g. win 7 as you did :slight_smile:.

1 Like

hmm, i did install msys2 but that does not save me from the error message regarding missing ssh-keygen

i did install both msys2 and then pacman -S --needed base-devel git

whatever that does

UPDATE: ok, you have to have msys2 installed before you start the sdk installer, then it will choose the proper path and executable for bash …
maybe the reboot did help too