PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.2k stars 740 forks source link

failed to initialize w32posix wrapper #2181

Closed fengxx closed 7 months ago

fengxx commented 7 months ago

Prerequisites

Steps to reproduce

very weird behavior, 1) win+R, type ssh hostname can not reproduce 2) win+R, type cmd, then type ssh hostname, throws error failed to initialize w32posix wrapper 3) win+R, type cmd, then type cmd.exe in cmd to spawn a new process, then type ssh hostname in the new cmd, there is no error 4) win+R, type powershell, then type ssh hostname in powershell, throws error failed to initialize w32posix wrapper 5) open ConEmu , type ssh, can not reproduce

System has enough memory, and tried cmd.exe with small history buffer such as 50, still no luck

no idea what triggered the error in w32posix_initialize

Expected behavior

ssh can connect to remote host

Actual behavior

`failed to initialize w32posix wrapper` and hangs

Error details

failed to initialize w32posix wrapper

Environment data

$PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.22621.2419
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2419
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

OpenSSH_for_Windows_9.4p1, LibreSSL 3.7.3

Visuals

No response

fengxx commented 7 months ago

It seesm there was a conflict with WindowsTerminal, removed WindowsTerminal and resintalled from Microsoft Store, everything is back to normal. feel free to close if it is not a bug