mutagen-io / mutagen

Fast file synchronization and network forwarding for remote development
https://mutagen.io
Other
3.47k stars 153 forks source link

[Windows]: Could not find ssh in the lookup path when installed with winget #491

Open jeremyVignelles opened 7 months ago

jeremyVignelles commented 7 months ago

OS : Windows 11 x64 mutagen 0.17.2

I'm trying to connect to an ssh server using mutagen sync create and the command fails with this error:

unable to identify 'ssh' command: unable to locate command

I've read the doc at https://mutagen.io/documentation/transports/ssh, which points to this link (btw, it should be this link instead, because the file has been moved and it now seems to look for the windows implementation).

Mutagen fails to properly find the windows ssh implementation (presumably because of the footnote on the doc : the fix has not landed), but it also fails to look for my git bash.

I installed git bash with the command winget install Git.Git with an unprivileged user, which installed git bash under %LOCALAPPDATA%\Programs\Git.

When I uninstalled git for windows and installed it again using the same command, but as administrator, the git install path is now the default C:\Programs one and is not picked up properly by mutagend

Is it possible to add %LOCALAPPDATA%\Programs\Git in the lookup path ?

Note : winget is one of the recommended installation method for git-for-windows