Giter Site home page Giter Site logo

Comments (9)

quamrulmina avatar quamrulmina commented on May 20, 2024

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.

from win32-openssh.

quamrulmina avatar quamrulmina commented on May 20, 2024

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

from win32-openssh.

quamrulmina avatar quamrulmina commented on May 20, 2024

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 -

from win32-openssh.

MichaelPietroforte avatar MichaelPietroforte commented on May 20, 2024

@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.

from win32-openssh.

quamrulmina avatar quamrulmina commented on May 20, 2024

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 -

from win32-openssh.

manojampalam avatar manojampalam commented on May 20, 2024

Fixed in latest release.

from win32-openssh.

mikemaccana avatar mikemaccana commented on May 20, 2024

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

from win32-openssh.

ariscop avatar ariscop commented on May 20, 2024

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

from win32-openssh.

mikemaccana avatar mikemaccana commented on May 20, 2024

Thanks @ariscop!

from win32-openssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.