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

Support for Windows 10 hosts with OpenSSH #1882

Open
ciarancourtney opened this issue Sep 27, 2018 · 0 comments
Open

Support for Windows 10 hosts with OpenSSH #1882

ciarancourtney opened this issue Sep 27, 2018 · 0 comments

Comments

@ciarancourtney
Copy link

As of 2018 Windows 10 comes with an optional OpenSSH server. By default clients are given a remote shell to cmd but you can specify an alternative (like Git Bash) in the registry like so:

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\Git\bin\bash.exe" -PropertyType String -Force

With Fabric:

Works

  • basic commands, return codes, stdout and stderr etc

Doesn't work

  • certain builtins like mkdir, which

Here is some sample output

test -d buildbot-worker  # ok
hostname  # ok
windows-10-x64
mkdir -p buildbot-worker  # not ok
mkdir: missing operand
Try 'mkdir --help' for more information.

I realize this opens a can of worms, most of which is probably due to problems with the very beta state of win10 OpenSSH and compounded by using git bash, but maybe this issue can track workarounds/docs on how to support the use case better?

WSL is another option, but not suitable for when you want nix-y native-ish windows command that mingw gives you

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

1 participant