The simplest repro is to run the following in a cmd shell: > ssh user@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@host', '--', 'echo', 'x']) will hang.
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.
I am using Microsoft OpenSSH and it appears they already know about this issue (https://github.com/PowerShell/Win32-OpenSSH/issues/1330)
closing resolved bugs as of 8.6p1 release