-
Notifications
You must be signed in to change notification settings - Fork 775
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
Unable to pipe shell commands #1545
Comments
Assuming the Windows shell configured for your OpenSSH server is the default
or without the chatty version and copyright message
I don't know how to suppress the prompts though, but considering that on the Windows command line I also get all that with
I wouldn't expect OpenSSH to give me just
as I don't see yet any documented way to start up |
In our original scenario (microsoft/vscode-remote-release#25) I can't pass |
@roblourens Probing what shell is started at the other end sounds like a rather brave idea: there is not only But if that's what you are after, you definitely do want to see the In my own code, I just add a configuration option what shell is to be expected at the other end. |
Fixed, this will be part of our next release. |
"OpenSSH for Windows" version
8.1.0.0p1-Beta
Server OperatingSystem
Windows Server 2019 Datacenter
Client OperatingSystem
Linux and MacOS tested.
What is failing
I expect to be able to pipe commands through
ssh
to the shell on the windows side. See this issue in the Visual Studio Code remote SSH repository for an example of where this functionality is expected: microsoft/vscode-remote-release#25 (comment)Quick reproducer:
Expected output
I expect this to output
test
.Actual output
It outputs
shell request failed on channel 0
Running
psexec -s sshd.exe -ddd
on the server gives the following output:This makes me think that what is happening is the
shell_option
andexec_command
shown above are interacting badly with the pipe-form ofssh
. Note that if I instead runssh -T win64bot3 "echo test"
, it works fine.The text was updated successfully, but these errors were encountered: