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

Powershell accepts input on the daemons prompt, not the clients #16

Closed
ariscop opened this issue Oct 20, 2015 · 9 comments
Closed

Powershell accepts input on the daemons prompt, not the clients #16

ariscop opened this issue Oct 20, 2015 · 9 comments

Comments

@ariscop
Copy link

ariscop commented Oct 20, 2015

https://youtu.be/dVPuI8HrE00

Launching powershell directly (ssh localhost powershell) has the same behavior

@quamrulmina
Copy link
Contributor

Known limit now - cmd.exe shell runs but Powershell does not. Our win32 port of sshd server does not provide a console as input in pty/tty mode and powershell seems to need a console input to run in interactive mode. Notice cmd.exe shell does not have this need and so runs fine.

@quamrulmina
Copy link
Contributor

"powershell -File -" invocation will make it work now as it is a known issue of powershell.

@quamrulmina
Copy link
Contributor

Invoke as follows to make it work:
ssh user@domain@hostname powershell -File -

From a cmd.exe remote shell:
ssh user@domain@hostname
c:> powershell -File -

@MichaelPietroforte
Copy link

@quamrulmina This didn't work for me. When I enter powershell -File - I just receive "powershell -File" twice as output, but PowerShell commands still don't work. Only cmd.exe shell works.

@quamrulmina
Copy link
Contributor

In the upcoming release it has been fixed and "ssh user@domain@hostname powershell -File -" will work. But it will work even better if you launch powershell after getting to the interactive shell, cmd.exe, in this case so that pty support like echo characters are available:
ssh user@domain@hostname
c:> powershell -File -

@manojampalam
Copy link
Contributor

Fixed in latest release.

@mikemaccana
Copy link
Contributor

Why is this closed? There's a workaround (powershell -File -) but obviously input should be set correctly by default.

@ariscop
Copy link
Author

ariscop commented Dec 28, 2015

This bug was fixed, powershell's io is sent over ssh instead of using the sshd's console
On the latest release powershell is still broken, but it's a different bug

@mikemaccana
Copy link
Contributor

Thanks @ariscop!

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

5 participants