bugzilla-daemon at bugzilla.mindrot.org
2019-Feb-05 22:12 UTC
[Bug 2965] New: OpenSSH for Windows hangs if there is no STDIN
https://bugzilla.mindrot.org/show_bug.cgi?id=2965
Bug ID: 2965
Summary: OpenSSH for Windows hangs if there is no STDIN
Product: Portable OpenSSH
Version: 7.9p1
Hardware: Other
OS: Windows 10
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: leese at google.com
The simplest repro is to run the following in a cmd shell:
> ssh user at host -- echo x < NUL:
x
GetConsoleMode on STD_INPUT_HANDLE failed with 6
... and then it hangs and is unresponsive to input. If instead you pipe
in an empty file it works fine.
This becomes a pain when you are writing a script that shells out to
ssh to run a single remote command, as you need to provide a stdin file
or it will hang. So for example, in python on Windows:
subprocess.check_output(['ssh', 'user at host', '--',
'echo', 'x'])
will hang.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2019-Feb-08 03:57 UTC
[Bug 2965] OpenSSH for Windows hangs if there is no STDIN
https://bugzilla.mindrot.org/show_bug.cgi?id=2965
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
It looks like you're using the Microsoft OpenSSH client. Is this the
case?
If so, you'll need to report the bugs on their github tracker
https://github.com/PowerShell/Win32-OpenSSH/issues as their code is a
fairly substantial fork from what we release.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2019-Feb-08 16:40 UTC
[Bug 2965] OpenSSH for Windows hangs if there is no STDIN
https://bugzilla.mindrot.org/show_bug.cgi?id=2965 --- Comment #2 from leese at google.com --- I am using Microsoft OpenSSH and it appears they already know about this issue (https://github.com/PowerShell/Win32-OpenSSH/issues/1330) -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2019-Feb-22 03:23 UTC
[Bug 2965] OpenSSH for Windows hangs if there is no STDIN
https://bugzilla.mindrot.org/show_bug.cgi?id=2965
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 05:11 UTC
[Bug 2965] OpenSSH for Windows hangs if there is no STDIN
https://bugzilla.mindrot.org/show_bug.cgi?id=2965
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
closing resolved bugs as of 8.6p1 release
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.