Comments (9)
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.
"powershell -File -" invocation will make it work now as it is a known issue of powershell.
from win32-openssh.
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.
@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.
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.
Fixed in latest release.
from win32-openssh.
Why is this closed? There's a workaround (powershell -File -
) but obviously input should be set correctly by default.
from win32-openssh.
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.
Thanks @ariscop!
from win32-openssh.
Related Issues (20)
- Winget (and MSI) installer updates PATH but does not tell user to restart their shell
- RequestTTY doesn't seem to help with 2FA HOT 1
- Account & Password authenticated, session never opens & hangs. Only for a specific user HOT 1
- "Match Group" together with "ChrootDirectory" breaks SFTP HOT 3
- Support for Credential Guard HOT 7
- OpenSSH ssh ignores contents of .config file in User HOT 4
- Command Prompt Font Fallbacks To Vector If Default Was Raster HOT 2
- passwordless public key ssh from linuxe to windows works for domain user fails for local user HOT 4
- Windows <-> Linux SSH tunnels result in connection errors HOT 1
- Change README.md, add a reference to the latest stable for Windows HOT 2
- SCP using SFTP fails with UNC paths
- BSOD on 'scp' HOT 1
- OpenSSH 9.7 HOT 4
- Add SSH server compression support HOT 2
- Using `ssh-add` with a ecdsa_sk key with Windows Hello will still constantly prompt for Windows Hello. HOT 1
- Digitally sign the OpenSSH binaries that come default in Windows and official FOD HOT 2
- Bad configuration option: GSSAPIDelegation HOT 1
- Error "BN_is_negative not found in DLL" when calling ssh after moving exe HOT 2
- Compile in windows 10 HOT 1
- unexpected "key enrollment failed: invalid format" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from win32-openssh.