|
|
|
|
|
by ryanprichard
3900 days ago
|
|
Will this OpenSSH server be able to run interactive console programs (like cmd.exe or python.exe), or will it be limited to (say) PowerShell? Windows doesn't have a good API for hosting a console--it's not like Unix, where a pty has a master end and a slave end. Trying to run a console program in mintty.exe (https://github.com/mintty/mintty/issues/56) or Cygwin SSHD fails for this reason. I wrote a tool, winpty, that makes a best-effort attempt to emulate a Unix pty master by scraping the console buffer, but it has some limitations, so I'm not sure Microsoft would want to use it. Maybe they would expand the console API? |
|
Fortunately this example shows it going straight into cmd and then they invoke powershell as a next step:
- https://github.com/PowerShell/Win32-OpenSSH/wiki/ssh.exe-exa...That gives me some hope that it's being done right.