You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when starting powershell in an ssh session I got following error message:
user@mydomain@hostname C:\Users\user>powershell
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 0 Keys:
Exception:
System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
I am quite no sure whether this is releted to sshd or powershell?
The text was updated successfully, but these errors were encountered:
You need to use "powershell -File -" instead of just typing powershell in remote sshd session. It is a known issue due to both how powershell remotely works and how win32 ported sshd is currently designed only providing streammode/linemode features and not true windows console underneath. See closed issue #16 for full description on why you need this special options (- File -) to run powershell in sshd.
when starting powershell in an ssh session I got following error message:
I am quite no sure whether this is releted to sshd or powershell?
The text was updated successfully, but these errors were encountered: